Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355399

Summary: NPE in ScannerInfoConsoleParserUtility.translateRelativePaths() for remote projects
Product: [Tools] CDT Reporter: Chris Recoskie <recoskie>
Component: cdt-buildAssignee: Chris Recoskie <recoskie>
Status: RESOLVED FIXED QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: normal    
Priority: P3 CC: cdt-build-inbox, cdtdoug
Version: 7.0.2   
Target Milestone: 7.0.3   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch
recoskie: iplog-
updated patch recoskie: iplog-

Description Chris Recoskie CLA 2011-08-22 10:40:23 EDT
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.
Comment 1 Chris Recoskie CLA 2011-08-22 11:32:02 EDT
Created attachment 201930 [details]
patch
Comment 2 Chris Recoskie CLA 2011-08-22 13:22:13 EDT
Fix applied to cdt_7_0, cdt_8_0, and master.
Comment 3 CDT Genie CLA 2011-08-22 13:23:03 EDT
*** 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
Comment 4 CDT Genie CLA 2011-08-22 13:23:04 EDT
*** 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
Comment 5 CDT Genie CLA 2011-08-22 14:23:01 EDT
*** 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
Comment 6 Chris Recoskie CLA 2011-08-22 15:30:47 EDT
Created attachment 201952 [details]
updated patch

Updated to fix one other similar NPE.
Comment 7 CDT Genie CLA 2011-08-22 16:23:03 EDT
*** 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
Comment 8 CDT Genie CLA 2011-08-22 16:23:04 EDT
*** 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
Comment 9 CDT Genie CLA 2011-08-22 16:23:05 EDT
*** 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