mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Check for null.
This commit is contained in:
parent
50f8dcd8aa
commit
ef21d7a687
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ public class ParserUtil
|
|||
path = path.removeFirstSegments(root.getLocation().segmentCount() );
|
||||
|
||||
IResource resultingResource = root.getFile(path);
|
||||
if( resultingResource.exists() )
|
||||
if( resultingResource != null && resultingResource.exists() )
|
||||
return resultingResource;
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue