1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-05 07:15:39 +02:00

bug 285350: split statement to troubleshoot NPE

This commit is contained in:
Andrew Gvozdev 2010-05-04 03:22:41 +00:00
parent bf3078242e
commit 232e65ec58

View file

@ -4099,7 +4099,8 @@ public class ManagedBuildManager extends AbstractCExtension {
} }
private static IPath getPathForResource(IResource resource) { private static IPath getPathForResource(IResource resource) {
return new Path(resource.getLocationURI().getPath()); URI uri = resource.getLocationURI();
return new Path(uri.getPath());
} }
public static IBuilder[] createBuilders(IProject project, Map args){ public static IBuilder[] createBuilders(IProject project, Map args){