Author: dennyxu
Date: 2009-08-17 23:33:52 -0400 (Mon, 17 Aug 2009)
New Revision: 17114
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/wizards/pages/JBossESBRuntimeContainerPage.java
Log:
JBIDE-4331: Exception when adding ESB library to class path
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/wizards/pages/JBossESBRuntimeContainerPage.java
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/wizards/pages/JBossESBRuntimeContainerPage.java 2009-08-17
23:55:17 UTC (rev 17113)
+++
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/wizards/pages/JBossESBRuntimeContainerPage.java 2009-08-18
03:33:52 UTC (rev 17114)
@@ -165,6 +165,9 @@
Object element) {
if(element instanceof IRuntime){
IPath location = ((IRuntime)element).getLocation();
+
+ if(location == null) return false;
+
return JBossRuntimeManager.isValidESBServer(location.toOSString(), "");
}
return true;
Show replies by date