Author: adietish
Date: 2011-05-27 04:20:40 -0400 (Fri, 27 May 2011)
New Revision: 31543
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:19:08 UTC (rev 31542)
+++
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)
@@ -101,25 +101,25 @@
@Override
public Object getPropertyValue(Object id) {
if (id.equals(PROPERTY_NAME)) {
- return instance.getName();
+ return StringUtils.null2EmptyString(instance.getName());
}
if (id.equals(PROPERTY_ALIAS)) {
- return instance.getAlias();
+ return StringUtils.null2EmptyString(instance.getAlias());
}
if (id.equals(PROPERTY_ID)) {
- return instance.getId();
+ return StringUtils.null2EmptyString(instance.getId());
}
if (id.equals(PROPERTY_OWNER)) {
- return instance.getOwnerId();
+ return StringUtils.null2EmptyString(instance.getOwnerId());
}
if (id.equals(PROPERTY_PROFILEID)) {
- return instance.getProfileId();
+ return StringUtils.null2EmptyString(instance.getProfileId());
}
if (id.equals(PROPERTY_REALMID)) {
- return instance.getRealmId();
+ return StringUtils.null2EmptyString(instance.getRealmId());
}
if (id.equals(PROPERTY_IMAGEID)) {
- return instance.getImageId();
+ return StringUtils.null2EmptyString(instance.getImageId());
}
if (id.equals(PROPERTY_KEYNAME)) {
return StringUtils.null2EmptyString(instance.getKeyId());
Show replies by date