Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355399 - NPE in ScannerInfoConsoleParserUtility.translateRelativePaths() for remote projects
Summary: NPE in ScannerInfoConsoleParserUtility.translateRelativePaths() for remote pr...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 7.0.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 7.0.3   Edit
Assignee: Chris Recoskie CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-22 10:40 EDT by Chris Recoskie CLA
Modified: 2011-08-22 16:23 EDT (History)
2 users (show)

See Also:


Attachments
patch (1.64 KB, patch)
2011-08-22 11:32 EDT, Chris Recoskie CLA
recoskie: iplog-
Details | Diff
updated patch (2.14 KB, patch)
2011-08-22 15:30 EDT, Chris Recoskie CLA
recoskie: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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