mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
Bug 355399 - NPE in
ScannerInfoConsoleParserUtility.translateRelativePaths() for remote projects
This commit is contained in:
parent
3d08050db8
commit
53e62ebcc5
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ public class ScannerInfoConsoleParserUtility extends AbstractGCCBOPConsoleParser
|
||||||
tPath = tPath.removeFirstSegments(1);
|
tPath = tPath.removeFirstSegments(1);
|
||||||
}
|
}
|
||||||
// get the file path from the file
|
// 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());
|
IPath lastFileSegment = filePath.removeFirstSegments(filePath.segmentCount() - tPath.segmentCount());
|
||||||
if (lastFileSegment.matchingFirstSegments(tPath) == tPath.segmentCount()) {
|
if (lastFileSegment.matchingFirstSegments(tPath) == tPath.segmentCount()) {
|
||||||
cwd = filePath.removeLastSegments(tPath.segmentCount());
|
cwd = filePath.removeLastSegments(tPath.segmentCount());
|
||||||
|
|
Loading…
Add table
Reference in a new issue