1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +02:00

Bug 355399 - NPE in

ScannerInfoConsoleParserUtility.translateRelativePaths() for remote
projects
This commit is contained in:
Chris Recoskie 2011-08-22 15:29:57 -04:00
parent 3d08050db8
commit 53e62ebcc5

View file

@ -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());