Skip to main content
summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAndrew Gvozdev2010-05-03 23:22:41 -0400
committerAndrew Gvozdev2010-05-03 23:22:41 -0400
commit232e65ec58a47faf1377172bfb3879c18ea02936 (patch)
tree6b35727d96340b186a8b2ca77df7de112172e84f /build
parentbf3078242ed4970c8876549068cd11e7733e4e7b (diff)
downloadorg.eclipse.cdt-232e65ec58a47faf1377172bfb3879c18ea02936.tar.gz
org.eclipse.cdt-232e65ec58a47faf1377172bfb3879c18ea02936.tar.xz
org.eclipse.cdt-232e65ec58a47faf1377172bfb3879c18ea02936.zip
bug 285350: split statement to troubleshoot NPE
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
index bbbd3b5fbd..6fd3bd725d 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
@@ -4099,7 +4099,8 @@ public class ManagedBuildManager extends AbstractCExtension {
}
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){

Back to the top