Author: adietish
Date: 2010-12-22 09:38:37 -0500 (Wed, 22 Dec 2010)
New Revision: 27665
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/InstanceItem.java
Log:
[JBIDE-7977] checking null on given name
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/InstanceItem.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/InstanceItem.java 2010-12-22
14:35:09 UTC (rev 27664)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/InstanceItem.java 2010-12-22
14:38:37 UTC (rev 27665)
@@ -29,7 +29,9 @@
DeltaCloudInstance instance = getModel();
StringBuilder sb = new StringBuilder();
if (instance != null) {
- sb.append(instance.getGivenName());
+ if (instance.getGivenName() != null) {
+ sb.append(instance.getGivenName());
+ }
if (instance.getName() != null) {
sb.append(" [").append(instance.getName()).append("]");
}
Show replies by date