1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 06:55:23 +02:00

When a referenced project is deleted it's location is null. The source locator should check this when it returns the path array.

This commit is contained in:
Mikhail Khodjaiants 2002-11-07 21:54:40 +00:00
parent 134a9cb1c8
commit 5af988624b
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2002-11-07 Mikhail Khodjaiants
When a referenced project is deleted it's location is null. The source locator should
check this when it returns the path array.
* CProjectSourceLocation.java
2002-11-05 Mikhail Khodjaiants 2002-11-05 Mikhail Khodjaiants
Added support of the 'Add Global Variables' action of the Expressions view. Added support of the 'Add Global Variables' action of the Expressions view.
* IExecFileInfo.java * IExecFileInfo.java

View file

@ -153,7 +153,11 @@ public class CProjectSourceLocation implements ICSourceLocation
IPath[] result = new IPath[0]; IPath[] result = new IPath[0];
if ( getProject() != null ) if ( getProject() != null )
{ {
result = new IPath[] { getProject().getLocation() }; IPath location = getProject().getLocation();
if ( location != null )
{
result = new IPath[] { location };
}
} }
return result; return result;
} }