Community
Participate
Working Groups
At line 219 there is this check: if (!filePath.toString().equalsIgnoreCase(file.getLocation().toString())) { For a remote project, file.getLocation() returns null, so this NPEs. Using EFSExtensionManager to get the path should fix it. Patch is on its way.
Created attachment 201930 [details] patch
Fix applied to cdt_7_0, cdt_8_0, and master.
*** cdt git genie on behalf of Chris Recoskie *** Bug 355399 - NPE in ScannerInfoConsoleParserUtility.translateRelativePaths() for remote projects [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=294d9698a435d7c111b22f55358f445090a54e49
*** cdt git genie on behalf of Chris Recoskie *** Bug 355399 - NPE in ScannerInfoConsoleParserUtility.translateRelativePaths() for remote projects [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=e4424b7678927ce2062ddaae631b9b2cb9fb2264
*** cdt git genie on behalf of Chris Recoskie *** Bug 355399 - NPE in ScannerInfoConsoleParserUtility.translateRelativePaths() for remote projects [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=3d08050db856df5bc98ec2fd1959fb48bb153bef
Created attachment 201952 [details] updated patch Updated to fix one other similar NPE.
*** cdt git genie on behalf of Chris Recoskie *** Bug 355399 - NPE in ScannerInfoConsoleParserUtility.translateRelativePaths() for remote projects [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=c2cefd3a19349db29d1431f98806af358132c57f
*** cdt git genie on behalf of Chris Recoskie *** Bug 355399 - NPE in ScannerInfoConsoleParserUtility.translateRelativePaths() for remote projects [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=e699fb5dfb540545150ddadfa899dd6515e605e8
*** cdt git genie on behalf of Chris Recoskie *** Bug 355399 - NPE in ScannerInfoConsoleParserUtility.translateRelativePaths() for remote projects [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=53e62ebcc571214d2a211754092432b4c6bb1939