Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331851 - Use Scan builder may throw NPE
Summary: Use Scan builder may throw NPE
Status: VERIFIED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: API Tools (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7 M4   Edit
Assignee: Ankur Sharma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 331853
Blocks:
  Show dependency tree
 
Reported: 2010-12-04 16:22 EST by Ankur Sharma CLA
Modified: 2010-12-07 13:19 EST (History)
2 users (show)

See Also:


Attachments
Patch (1.02 KB, patch)
2010-12-04 16:46 EST, Ankur Sharma CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ankur Sharma CLA 2010-12-04 16:22:58 EST
Use Scan builder may throw NPE when

1. there are two (open) projects present on workspace with same ID such that one is normal plug-in while other a binary
2. APIBaselineManager confuses one with other and creates BundleComponent instead of ProjectComponent
Comment 1 Ankur Sharma CLA 2010-12-04 16:46:28 EST
Created attachment 184541 [details]
Patch

test if the apicomponent is ProjectComponent, if not don't perform external dependency check as it will be checking the APIs in wrong component.
Comment 2 Ankur Sharma CLA 2010-12-04 17:06:29 EST
Fixed in HEAD
Comment 3 Curtis Windatt CLA 2010-12-07 13:19:24 EST
Verified, the builder runs without problems, but problems may not get reported if you have both a binary plug-in and a normal plug-in in the workspace.