Author: rob.stryker(a)jboss.com
Date: 2009-12-17 15:00:42 -0500 (Thu, 17 Dec 2009)
New Revision: 19450
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServer.java
Log:
NPE
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServer.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServer.java 2009-12-17
19:56:58 UTC (rev 19449)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServer.java 2009-12-17
20:00:42 UTC (rev 19450)
@@ -165,9 +165,12 @@
}
public IJBossServerRuntime getRuntime() {
- IJBossServerRuntime ajbsrt = (IJBossServerRuntime) getServer().getRuntime()
+ IJBossServerRuntime ajbsrt = null;
+ if( getServer().getRuntime() != null ) {
+ ajbsrt = (IJBossServerRuntime) getServer().getRuntime()
.loadAdapter(IJBossServerRuntime.class,
new NullProgressMonitor());
+ }
return ajbsrt;
}
Show replies by date