Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Recoskie2011-08-22 15:29:57 -0400
committerChris Recoskie2011-08-22 15:42:09 -0400
commit53e62ebcc571214d2a211754092432b4c6bb1939 (patch)
treebfbd6c62a67cbea3011c1cec9f9de1c42617594d /build/org.eclipse.cdt.make.core
parent3d08050db856df5bc98ec2fd1959fb48bb153bef (diff)
downloadorg.eclipse.cdt-53e62ebcc571214d2a211754092432b4c6bb1939.tar.gz
org.eclipse.cdt-53e62ebcc571214d2a211754092432b4c6bb1939.tar.xz
org.eclipse.cdt-53e62ebcc571214d2a211754092432b4c6bb1939.zip
Bug 355399 - NPE in
ScannerInfoConsoleParserUtility.translateRelativePaths() for remote projects
Diffstat (limited to 'build/org.eclipse.cdt.make.core')
-rw-r--r--build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/ScannerInfoConsoleParserUtility.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/ScannerInfoConsoleParserUtility.java b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/ScannerInfoConsoleParserUtility.java
index 2cd11728e9..1ff5e0f1e5 100644
--- a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/ScannerInfoConsoleParserUtility.java
+++ b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/ScannerInfoConsoleParserUtility.java
@@ -238,7 +238,7 @@ public class ScannerInfoConsoleParserUtility extends AbstractGCCBOPConsoleParser
tPath = tPath.removeFirstSegments(1);
}
// get the file path from the file
- filePath = file.getLocation();
+ filePath = new Path(EFSExtensionManager.getDefault().getPathFromURI(file.getLocationURI()));
IPath lastFileSegment = filePath.removeFirstSegments(filePath.segmentCount() - tPath.segmentCount());
if (lastFileSegment.matchingFirstSegments(tPath) == tPath.segmentCount()) {
cwd = filePath.removeLastSegments(tPath.segmentCount());

Back to the top