mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-28 03:15:33 +02:00
Check if project exists when generating the source locations.
This commit is contained in:
parent
77e7c17c2c
commit
cd7c06c7d3
2 changed files with 10 additions and 3 deletions
|
@ -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):
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Add table
Reference in a new issue