[jbosstools-commits] JBoss Tools SVN: r41723 - branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/propertytable.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Tue Jun 5 13:15:32 EDT 2012


Author: adietish
Date: 2012-06-05 13:15:32 -0400 (Tue, 05 Jun 2012)
New Revision: 41723

Modified:
   branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/propertytable/PropertyValueCellLabelProvider.java
Log:
[JBIDE-12034] avoiding NPE when displaying embedded cartridges that dont have an URL

Modified: branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/propertytable/PropertyValueCellLabelProvider.java
===================================================================
--- branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/propertytable/PropertyValueCellLabelProvider.java	2012-06-05 17:14:56 UTC (rev 41722)
+++ branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/propertytable/PropertyValueCellLabelProvider.java	2012-06-05 17:15:32 UTC (rev 41723)
@@ -65,7 +65,7 @@
 				textStyle.underline = true;
 			}
 		};
-		StyledString styledString = new StyledString(property.getValue(), style);
+		StyledString styledString = new StyledString(StringUtils.null2emptyString(property.getValue()), style);
 		cell.setStyleRanges(styledString.getStyleRanges());
 		cell.setText(styledString.getString());
 	}



More information about the jbosstools-commits mailing list