mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Fix for PR 40696.
This commit is contained in:
parent
62d269c6f8
commit
3b39a5f585
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-07-24 Mikhail Khodjaiants
|
||||
Fix for PR 40696. If the project contains the reference to a project that is
|
||||
deleted from the workspace the source locator tries to get the location of deleted project.
|
||||
* CProjectSourceLocation.java
|
||||
|
||||
2003-07-22 Mikhail Khodjaiants
|
||||
Create a special type of ICDIVariable (ErrorVariable) if request to gdb fails.
|
||||
* CVariable.java
|
||||
|
|
|
@ -160,6 +160,8 @@ public class CProjectSourceLocation implements IProjectSourceLocation
|
|||
private Object findFileByRelativePath( IContainer container, String fileName )
|
||||
{
|
||||
IPath rootPath = container.getLocation();
|
||||
if ( rootPath == null )
|
||||
return null;
|
||||
IPath path = rootPath.append( fileName );
|
||||
Object result = findFileByAbsolutePath( path.toOSString() );
|
||||
if ( result == null )
|
||||
|
|
Loading…
Add table
Reference in a new issue