Non-deterministic null return value from getBundleDescription() [message #129161] |
Wed, 15 April 2009 11:37  |
Eclipse User |
|
|
|
Hi all,
We're running Eclipse in headless mode and computing classpaths for plugin
projects via BundleDescriptions. On some runs, we unexpectedly get null
as the return value from a call to
IPluginModelBase.getBundleDescription(). Here is the code:
private IPluginModelBase findModel(IProject p) {
return PDECore.getDefault().getModelManager().findModel(p);
}
IProject p = ...;
BundleDescription bd = findModel(p).getBundleDescription();
The documentation says that null can be returned if the project is in a
classic format, but we know that's not the case here since most of the
time getBundleDescription() works correctly.
Our guess is that we're hitting some kind of race condition, but I tried
running the above code in a Job that locks the whole workspace, and we
still saw the problem. I searched Bugzilla and didn't see anything
directly relevant. Any advice on this issue would be very welcome.
Thanks!
Best,
Manu
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06017 seconds