[156347] Can't add/edit server classpath container
diff --git a/plugins/org.eclipse.jst.server.ui/META-INF/MANIFEST.MF b/plugins/org.eclipse.jst.server.ui/META-INF/MANIFEST.MF index 021acfe..976b55b 100644 --- a/plugins/org.eclipse.jst.server.ui/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.jst.server.ui/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.jst.server.ui; singleton:=true -Bundle-Version: 1.0.103.qualifier +Bundle-Version: 1.0.104.qualifier Bundle-Activator: org.eclipse.jst.server.ui.internal.JavaServerUIPlugin Bundle-Vendor: %providerName Bundle-Localization: plugin
diff --git a/plugins/org.eclipse.jst.server.ui/sjavaui/org/eclipse/jst/server/ui/internal/ServerClasspathContainerPage.java b/plugins/org.eclipse.jst.server.ui/sjavaui/org/eclipse/jst/server/ui/internal/ServerClasspathContainerPage.java index 63e4dc3..cabc05b 100644 --- a/plugins/org.eclipse.jst.server.ui/sjavaui/org/eclipse/jst/server/ui/internal/ServerClasspathContainerPage.java +++ b/plugins/org.eclipse.jst.server.ui/sjavaui/org/eclipse/jst/server/ui/internal/ServerClasspathContainerPage.java
@@ -53,11 +53,13 @@ IRuntime[] runtimes = ServerCore.getRuntimes(); int size = runtimes.length; for (int i = 0; i < size; i++) { - RuntimeClasspathProviderWrapper rcpw = JavaServerPlugin.findRuntimeClasspathProvider(runtimes[i].getRuntimeType()); - if (rcpw != null) { - IPath serverContainerPath = new Path(RuntimeClasspathContainer.SERVER_CONTAINER) - .append(rcpw.getId()).append(runtimes[i].getId()); - runtimeMap.put(runtimes[i], JavaCore.newContainerEntry(serverContainerPath)); + if (runtimes[i].getRuntimeType() != null) { + RuntimeClasspathProviderWrapper rcpw = JavaServerPlugin.findRuntimeClasspathProvider(runtimes[i].getRuntimeType()); + if (rcpw != null) { + IPath serverContainerPath = new Path(RuntimeClasspathContainer.SERVER_CONTAINER) + .append(rcpw.getId()).append(runtimes[i].getId()); + runtimeMap.put(runtimes[i], JavaCore.newContainerEntry(serverContainerPath)); + } } } }