Author: rob.stryker(a)jboss.com
Date: 2009-12-17 13:42:09 -0500 (Thu, 17 Dec 2009)
New Revision: 19443
Modified:
branches/jbosstools-3.1.0.RC1/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/wizards/pages/JBossESBRuntimeContainerPage.java
Log:
JBIDE-5495 - NPE if non-jbt servers are in the workspace.
Modified:
branches/jbosstools-3.1.0.RC1/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/wizards/pages/JBossESBRuntimeContainerPage.java
===================================================================
---
branches/jbosstools-3.1.0.RC1/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/wizards/pages/JBossESBRuntimeContainerPage.java 2009-12-17
18:40:45 UTC (rev 19442)
+++
branches/jbosstools-3.1.0.RC1/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/wizards/pages/JBossESBRuntimeContainerPage.java 2009-12-17
18:42:09 UTC (rev 19443)
@@ -170,7 +170,8 @@
String runtimeType = ((IRuntime)element).getRuntimeType().getId();
if(location == null) return false;
IJBossServerRuntime jbossRuntime =
(IJBossServerRuntime)((IRuntime)element).loadAdapter(IJBossServerRuntime.class, new
NullProgressMonitor());
-
+ if( jbossRuntime == null )
+ return false;
return JBossRuntimeManager.isValidESBServer(location.toOSString(), runtimeType,
jbossRuntime.getJBossConfiguration());
}
return true;