Author: dennyxu
Date: 2010-01-28 02:27:26 -0500 (Thu, 28 Jan 2010)
New Revision: 19978
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/wizards/ESBProjectWizard.java
Log:
JBIDE-5750:NPE when creating a ESB project without specifing target runtime
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/wizards/ESBProjectWizard.java
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/wizards/ESBProjectWizard.java 2010-01-28
07:13:35 UTC (rev 19977)
+++
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/wizards/ESBProjectWizard.java 2010-01-28
07:27:26 UTC (rev 19978)
@@ -96,6 +96,9 @@
// Add the server runtime as well
IFacetedProject fp = ProjectFacetsManager.create(project);
IRuntime runtime = fp.getPrimaryRuntime();
+
+ if(runtime == null) return;
+
String name = runtime.getName();
org.eclipse.wst.server.core.IRuntime serverRuntime = ServerCore.findRuntime(name);
RuntimeClasspathProviderWrapper rcpw =
JavaServerPlugin.findRuntimeClasspathProvider(serverRuntime.getRuntimeType());
Show replies by date