Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341769 - NPE in BaseStorage#getBundleContent
Summary: NPE in BaseStorage#getBundleContent
Status: RESOLVED WORKSFORME
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: equinox.framework-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-04 08:32 EDT by Nicolas Bros CLA
Modified: 2015-04-23 11:15 EDT (History)
2 users (show)

See Also:


Attachments
stacktrace (1.78 KB, text/plain)
2011-04-04 08:32 EDT, Nicolas Bros CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Bros CLA 2011-04-04 08:32:31 EDT
Created attachment 192451 [details]
stacktrace

I got a NullPointerException in org.eclipse.osgi.internal.baseadaptor.BaseStorage#getBundleContent while building MoDisco on Hudson with Buckminster.

See the attached stacktrace.
Comment 1 Thomas Watson CLA 2011-04-04 10:21:30 EDT
From the line numbers I am guessing this is 3.6.2.  It seems that the method org.eclipse.osgi.internal.baseadaptor.BaseStorageHook.getFileName() is returning null for the system bundle.  The thing I don't understand is why the code is trying to do this at all since the bundledata for the system bundle creates the bundle file object at construction time.

Do you have steps to reproduce?
Comment 2 Nicolas Bros CLA 2011-04-04 11:54:16 EDT
(In reply to comment #1)
> From the line numbers I am guessing this is 3.6.2.
I re-installed Buckminster today, and I see "org.eclipse.osgi_3.7.0.v20110304.jar". 
If the line numbers match 3.6.2 instead, I think I might have updated Buckminster while it was building. So, the NPE might be due to a corrupted state (I only saw this error once).
Comment 3 Szymon Ptaszkiewicz CLA 2015-04-23 11:15:42 EDT
(In reply to Nicolas Bros from comment #2)
> If the line numbers match 3.6.2 instead, I think I might have updated
> Buckminster while it was building. So, the NPE might be due to a corrupted
> state (I only saw this error once).

If the error happened just once, there is not much we can do right now. Please reopen if you still see this problem and provide steps to reproduce.