Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355375 - NPE in OSGiBundle class
Summary: NPE in OSGiBundle class
Status: CLOSED FIXED
Alias: None
Product: Gemini.Management
Classification: RT
Component: Core (show other bugs)
Version: pre-release   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 1.0.0.M01-incubation   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-22 08:35 EDT by Lazar Kirchev CLA
Modified: 2012-06-07 06:08 EDT (History)
2 users (show)

See Also:


Attachments
Proposed fix for the NPE exception (542 bytes, application/octet-stream)
2011-08-22 08:36 EDT, Lazar Kirchev CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lazar Kirchev CLA 2011-08-22 08:35:43 EDT
In org.eclipse.gemini.mgmt.framework.codec.OSGiBundle class, in the body of the method isRemovalPending() starting on line 674, a NullPointerException is thrown. When the flow enters the body of the if statemen, the value of the variable removalPending remains unchanged - i.e., remains null. The method returns boolean, but the the type of removalPending is Boolean and when it is null, the return throws a NPE. The variable removalPending should be assigned a value in the body of the if statement.
Comment 1 Lazar Kirchev CLA 2011-08-22 08:36:59 EDT
Created attachment 201913 [details]
Proposed fix for the NPE exception

The patch contains the fix, outlined in the bug report.
Comment 3 Lazar Kirchev CLA 2011-11-30 10:50:18 EST
Closing this bug.
Comment 4 Chris Frost CLA 2011-12-06 10:25:57 EST
Setting the target milestone for the first shipping