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

Bug 344542

Summary: NullPointerException when product has no ID
Product: z_Archived Reporter: Peter Kullmann <peter.kullmann>
Component: BuckminsterAssignee: buckminster.core-inbox <buckminster.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: thomas
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Peter Kullmann CLA 2011-05-03 05:39:51 EDT
I have a feature containing a product. If the product has no ID buckminster complains with a NullPointerException. 

In the workspace pressing save on the product:
Project refresh on test.feature failed: null

On a headless build with this feature included:
ERROR   [0002] : java.lang.NullPointerException
INFO:  TAG-ID 0002 = Query for test.feature:eclipse.feature, path: site.feature:eclipse.feature$1.0.0.qualifier

Adding Debug output or displayStackTrace does not help.

Of course, a product should have an ID, but this NPE was really hard to find without a corresponding error message.
Comment 1 Thomas Hallgren CLA 2011-07-13 10:59:51 EDT
Implemented better handling of missing id's in products, features, and plug-ins.

http://git.eclipse.org/c/buckminster/buckminster.git/commit/?id=07f92d74527497a87ac14b930baf8263281fba36