Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/launch
diff options
context:
space:
mode:
authorThomas Fletcher2006-08-23 17:53:18 +0000
committerThomas Fletcher2006-08-23 17:53:18 +0000
commit19737500de43e409e17b620d054fa0b449c0f1c8 (patch)
tree8e65a5fe14937d6712b0404825380e5e0184e150 /launch
parent697921c9b4535daa8b8c51708ab6accd191aab13 (diff)
downloadorg.eclipse.cdt-19737500de43e409e17b620d054fa0b449c0f1c8.tar.gz
org.eclipse.cdt-19737500de43e409e17b620d054fa0b449c0f1c8.tar.xz
org.eclipse.cdt-19737500de43e409e17b620d054fa0b449c0f1c8.zip
Fix to bail out gracefully when projects are closed or gone
PR 154891
Diffstat (limited to 'launch')
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CDebuggerTab.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CDebuggerTab.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CDebuggerTab.java
index 2b2e6af4d8c..b64b14cde1a 100644
--- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CDebuggerTab.java
+++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CDebuggerTab.java
@@ -295,6 +295,9 @@ public class CDebuggerTab extends AbstractCDebuggerTab {
IPath exePath = new Path(programName);
if (projectName != null && !projectName.equals("")) { //$NON-NLS-1$
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
+ if (!project.isAccessible()) {
+ return null;
+ }
if (!exePath.isAbsolute()) {
exePath = project.getLocation().append(exePath);
}

Back to the top