diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog index 07bdbf5a46a..eb7bff6b4a5 100644 --- a/debug/org.eclipse.cdt.debug.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.core/ChangeLog @@ -1,3 +1,7 @@ +2003-01-06 Mikhail Khodjaiants + Check if project exists when generating the source locations. + * CSourceLocator.java + 2003-01-06 Alain Magloire * src/org/eclipse/cdt/debug/core/cdi/ICDIBreakpointManager.java (createLocation): diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLocator.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLocator.java index 8bffd512cf3..574641bc52c 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLocator.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLocator.java @@ -170,7 +170,7 @@ public class CSourceLocator implements ICSourceLocator public static ICSourceLocation[] getDefaultSourceLocations( IProject project ) { ArrayList list = new ArrayList(); - if ( project != null ) + if ( project != null && project.exists() ) { list.add( new CProjectSourceLocation( project ) ); addReferencedSourceLocations( list, project ); @@ -187,8 +187,11 @@ public class CSourceLocator implements ICSourceLocator IProject[] projects = project.getReferencedProjects(); for ( int i = 0; i < projects.length; i++ ) { - list.add( new CProjectSourceLocation( projects[i] ) ); - addReferencedSourceLocations( list, projects[i] ); + if ( projects[i].exists() ) + { + list.add( new CProjectSourceLocation( projects[i] ) ); + addReferencedSourceLocations( list, projects[i] ); + } } } catch( CoreException e )