Author: rob.stryker(a)jboss.com
Date: 2011-01-12 13:59:09 -0500 (Wed, 12 Jan 2011)
New Revision: 28148
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java
Log:
change to avoid NPE when converting rse to server
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java 2011-01-12
18:48:08 UTC (rev 28147)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java 2011-01-12
18:59:09 UTC (rev 28148)
@@ -312,8 +312,10 @@
}
if( type != null && data != null ) {
CreateServerFromRSEJob job2 = new CreateServerFromRSEJob(type, data, instance);
- if( initialHost == null )
+ if( initialHost != null ) {
+ job2.setHost(initialHost);
return job2;
+ }
j.setNextJob(job2);
}
}
Show replies by date