mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +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
|
2003-07-22 Mikhail Khodjaiants
|
||||||
Create a special type of ICDIVariable (ErrorVariable) if request to gdb fails.
|
Create a special type of ICDIVariable (ErrorVariable) if request to gdb fails.
|
||||||
* CVariable.java
|
* CVariable.java
|
||||||
|
|
|
@ -160,6 +160,8 @@ public class CProjectSourceLocation implements IProjectSourceLocation
|
||||||
private Object findFileByRelativePath( IContainer container, String fileName )
|
private Object findFileByRelativePath( IContainer container, String fileName )
|
||||||
{
|
{
|
||||||
IPath rootPath = container.getLocation();
|
IPath rootPath = container.getLocation();
|
||||||
|
if ( rootPath == null )
|
||||||
|
return null;
|
||||||
IPath path = rootPath.append( fileName );
|
IPath path = rootPath.append( fileName );
|
||||||
Object result = findFileByAbsolutePath( path.toOSString() );
|
Object result = findFileByAbsolutePath( path.toOSString() );
|
||||||
if ( result == null )
|
if ( result == null )
|
||||||
|
|
Loading…
Add table
Reference in a new issue