Bug 48632 - NPE launching feature-less application
Summary: NPE launching feature-less application
Status: RESOLVED DUPLICATE of bug 49008
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-12 07:58 EST by Jim des Rivieres CLA
Modified: 2003-12-17 17:47 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim des Rivieres CLA 2003-12-12 07:58:37 EST
Build I20031211

Trying to launch a simple example application that uses the generic workbench. 
No features are included in this application. Gets a fatal NPE on startup.

Workbench startup is doing:
IPlatformConfiguration conf = BootLoader.getCurrentPlatformConfiguration();
String featureId = conf.getPrimaryFeatureIdentifier();
IPlatformConfiguration.IFeatureEntry feature = null;
if (featureId != null) {
   feature = conf.findConfiguredFeatureEntry(featureId);
}

conf comes back as a configuration with no configured features (correct),
but conf.getPrimaryFeatureIdentifier() returns "org.eclipse.platform" (!),
and conf.findConfiguredFeatureEntry("org.eclipse.platform") returns
a wrapped null feature. This ends up resulting in an NPE.

At the very least, the implementation of 
OldPlatformConfiguration.findConfiguredFeatureEntry()
should return null when PlatformConfiguration.findConfiguredFeatureEntry
returns null.
Comment 1 John Arthorne CLA 2003-12-17 17:47:48 EST

*** This bug has been marked as a duplicate of 49008 ***