1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Fix to bail out gracefully when projects are closed or gone

PR 154891
This commit is contained in:
Thomas Fletcher 2006-08-23 17:53:18 +00:00
parent 697921c9b4
commit 19737500de

View file

@ -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);
}