1
0
Fork 0
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:
John Camelon 2004-12-15 21:29:47 +00:00
parent 50f8dcd8aa
commit ef21d7a687

View file

@ -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;
}