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

Bug 331851

Summary: Use Scan builder may throw NPE
Product: [Eclipse Project] PDE Reporter: Ankur Sharma <ankur_sharma>
Component: API ToolsAssignee: Ankur Sharma <ankur_sharma>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, Michael_Rennie
Version: 3.7   
Target Milestone: 3.7 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 331853    
Bug Blocks:    
Attachments:
Description Flags
Patch none

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.