mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
Fix to bail out gracefully when projects are closed or gone
PR 154891
This commit is contained in:
parent
697921c9b4
commit
19737500de
1 changed files with 3 additions and 0 deletions
|
@ -295,6 +295,9 @@ public class CDebuggerTab extends AbstractCDebuggerTab {
|
||||||
IPath exePath = new Path(programName);
|
IPath exePath = new Path(programName);
|
||||||
if (projectName != null && !projectName.equals("")) { //$NON-NLS-1$
|
if (projectName != null && !projectName.equals("")) { //$NON-NLS-1$
|
||||||
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
|
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
|
||||||
|
if (!project.isAccessible()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if (!exePath.isAbsolute()) {
|
if (!exePath.isAbsolute()) {
|
||||||
exePath = project.getLocation().append(exePath);
|
exePath = project.getLocation().append(exePath);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue