Author: adietish
Date: 2011-05-27 04:22:01 -0400 (Fri, 27 May 2011)
New Revision: 31544
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/property/InstancePropertySource.java
Log:
displaying empty string instead of "null" if instance property is null
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/property/InstancePropertySource.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/property/InstancePropertySource.java 2011-05-27
08:20:40 UTC (rev 31543)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/property/InstancePropertySource.java 2011-05-27
08:22:01 UTC (rev 31544)
@@ -130,7 +130,7 @@
if (id.equals(PROPERTY_HOSTNAME)) {
List<String> hostnames = instance.getHostNames();
if (hostnames.size() >= 1) {
- return hostnames.get(0);
+ return StringUtils.null2EmptyString(hostnames.get(0));
}
}
return null;
Show replies by date