Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344542 - NullPointerException when product has no ID
Summary: NullPointerException when product has no ID
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Buckminster (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: buckminster.core-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-03 05:39 EDT by Peter Kullmann CLA
Modified: 2019-02-25 14:41 EST (History)
1 user (show)

See Also:


Attachments

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