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:
parent
134a9cb1c8
commit
5af988624b
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
Added support of the 'Add Global Variables' action of the Expressions view.
|
||||
* IExecFileInfo.java
|
||||
|
|
|
@ -153,7 +153,11 @@ public class CProjectSourceLocation implements ICSourceLocation
|
|||
IPath[] result = new IPath[0];
|
||||
if ( getProject() != null )
|
||||
{
|
||||
result = new IPath[] { getProject().getLocation() };
|
||||
IPath location = getProject().getLocation();
|
||||
if ( location != null )
|
||||
{
|
||||
result = new IPath[] { location };
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue