mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +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);
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue