Author: adietish
Date: 2012-10-23 05:47:12 -0400 (Tue, 23 Oct 2012)
New Revision: 44608
Modified:
branches/jbosstools-4.0.0.Beta1/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/explorer/OpenShiftExplorerLabelProvider.java
Log:
avoid NPE
Modified:
branches/jbosstools-4.0.0.Beta1/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/explorer/OpenShiftExplorerLabelProvider.java
===================================================================
---
branches/jbosstools-4.0.0.Beta1/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/explorer/OpenShiftExplorerLabelProvider.java 2012-10-22
15:34:47 UTC (rev 44607)
+++
branches/jbosstools-4.0.0.Beta1/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/explorer/OpenShiftExplorerLabelProvider.java 2012-10-23
09:47:12 UTC (rev 44608)
@@ -69,7 +69,11 @@
@Override
public String getText(Object element) {
- return getStyledText(element).getString();
+ StyledString styledString = getStyledText(element);
+ if (styledString == null) {
+ return null;
+ }
+ return styledString.getString();
}
@Override
Show replies by date