Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonrad Kolosowski2004-05-20 12:46:41 -0400
committerKonrad Kolosowski2004-05-20 12:46:41 -0400
commitdf182141782dd7cb71997491a38bc10a86129956 (patch)
tree9327cfaebfa48845f1de83271e0d69318df6c8b3 /org.eclipse.help.appserver
parent9c1f82e1172770f6b1ce82f323394c8160b786c2 (diff)
downloadeclipse.platform.ua-df182141782dd7cb71997491a38bc10a86129956.tar.gz
eclipse.platform.ua-df182141782dd7cb71997491a38bc10a86129956.tar.xz
eclipse.platform.ua-df182141782dd7cb71997491a38bc10a86129956.zip
63228 ContainerBase.addChild: start: LifecycleException: start: : java.lang.NullPointerException
Diffstat (limited to 'org.eclipse.help.appserver')
-rw-r--r--org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/PluginClassLoaderWrapper.java20
1 files changed, 11 insertions, 9 deletions
diff --git a/org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/PluginClassLoaderWrapper.java b/org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/PluginClassLoaderWrapper.java
index 91224d392..6fffcd119 100644
--- a/org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/PluginClassLoaderWrapper.java
+++ b/org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/PluginClassLoaderWrapper.java
@@ -110,16 +110,18 @@ public class PluginClassLoaderWrapper extends URLClassLoader {
private String[] getDirectPrereqs(String pluginId) {
try {
Bundle bundle = Platform.getBundle(pluginId);
- String header = (String) bundle.getHeaders().get(
- Constants.REQUIRE_BUNDLE);
- ManifestElement[] requires = ManifestElement.parseHeader(
- Constants.REQUIRE_BUNDLE, header);
- if (requires != null) {
- String[] reqs = new String[requires.length];
- for (int i = 0; i < requires.length; i++) {
- reqs[i] = requires[i].getValue();
+ if (bundle != null) {
+ String header = (String) bundle.getHeaders().get(
+ Constants.REQUIRE_BUNDLE);
+ ManifestElement[] requires = ManifestElement.parseHeader(
+ Constants.REQUIRE_BUNDLE, header);
+ if (requires != null) {
+ String[] reqs = new String[requires.length];
+ for (int i = 0; i < requires.length; i++) {
+ reqs[i] = requires[i].getValue();
+ }
+ return reqs;
}
- return reqs;
}
} catch (BundleException e) {
}

Back to the top