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

Bug 355375

Summary: NPE in OSGiBundle class
Product: [RT] Gemini.Management Reporter: Lazar Kirchev <l.kirchev>
Component: CoreAssignee: Project Inbox <gemini.management-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse, peter.peshev
Version: pre-release   
Target Milestone: 1.0.0.M01-incubation   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Proposed fix for the NPE exception none

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