Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonrad Kolosowski2004-05-21 10:49:56 -0400
committerKonrad Kolosowski2004-05-21 10:49:56 -0400
commite8c97ea3c246ba6c4b0880e9c5dae781f14811db (patch)
tree1ab08e0f70f3cf5f9f4a8957405dc104a0376460 /org.eclipse.help.appserver
parent00eea82320f931cd7d96e80eaeb2a9472d98a813 (diff)
downloadeclipse.platform.ua-e8c97ea3c246ba6c4b0880e9c5dae781f14811db.tar.gz
eclipse.platform.ua-e8c97ea3c246ba6c4b0880e9c5dae781f14811db.tar.xz
eclipse.platform.ua-e8c97ea3c246ba6c4b0880e9c5dae781f14811db.zip
63228 ContainerBase.addChild: start: LifecycleException: start: : java.lang.NullPointerExceptionv20040521
Diffstat (limited to 'org.eclipse.help.appserver')
-rw-r--r--org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/PluginClassLoaderWrapper.java54
1 files changed, 28 insertions, 26 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 6fffcd119..d50b4efd6 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
@@ -53,33 +53,35 @@ public class PluginClassLoaderWrapper extends URLClassLoader {
String id = (String) it.next();
try {
Bundle b = Platform.getBundle(id);
- // declared classpath
- String headers = (String) b.getHeaders().get(
- Constants.BUNDLE_CLASSPATH);
- ManifestElement[] paths = ManifestElement.parseHeader(
- Constants.BUNDLE_CLASSPATH, headers);
- if (paths != null) {
- for (int i = 0; i < paths.length; i++) {
- String path = paths[i].getValue();
- URL url = b.getEntry(path);
- if (url != null)
- try {
- urls.add(Platform.asLocalURL(url));
- } catch (IOException ioe) {
- }
+ if (b != null) {
+ // declared classpath
+ String headers = (String) b.getHeaders().get(
+ Constants.BUNDLE_CLASSPATH);
+ ManifestElement[] paths = ManifestElement.parseHeader(
+ Constants.BUNDLE_CLASSPATH, headers);
+ if (paths != null) {
+ for (int i = 0; i < paths.length; i++) {
+ String path = paths[i].getValue();
+ URL url = b.getEntry(path);
+ if (url != null)
+ try {
+ urls.add(Platform.asLocalURL(url));
+ } catch (IOException ioe) {
+ }
+ }
}
- }
- // dev classpath
- String[] devpaths = DevClassPathHelper
- .getDevClassPath(pluginId);
- if(devpaths !=null){
- for (int i = 0; i < devpaths.length; i++) {
- URL url = b.getEntry(devpaths[i]);
- if (url != null)
- try {
- urls.add(Platform.asLocalURL(url));
- } catch (IOException ioe) {
- }
+ // dev classpath
+ String[] devpaths = DevClassPathHelper
+ .getDevClassPath(pluginId);
+ if (devpaths != null) {
+ for (int i = 0; i < devpaths.length; i++) {
+ URL url = b.getEntry(devpaths[i]);
+ if (url != null)
+ try {
+ urls.add(Platform.asLocalURL(url));
+ } catch (IOException ioe) {
+ }
+ }
}
}
} catch (BundleException e) {

Back to the top