diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/graph/WGraph.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/graph/WGraph.java index 3223cb4761..5c3a83512a 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/graph/WGraph.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/graph/WGraph.java @@ -39,6 +39,7 @@ import org.compiere.util.DB; import org.compiere.util.DisplayType; import org.compiere.util.Env; import org.compiere.util.Msg; +import org.compiere.util.Util; import org.zkoss.zhtml.A; import org.zkoss.zhtml.Br; import org.zkoss.zhtml.Table; @@ -506,12 +507,14 @@ public class WGraph extends Div implements IdSpace { } private String stripHtml(String htmlString, boolean all) { - htmlString = htmlString.replace("", "").replace("", "") - .replace("", "").replace("", "").replace("", - "").replace("", ""); - - if (all) - htmlString = htmlString.replace(">", ">").replace("<", "<"); + if (!Util.isEmpty(htmlString, true)) { + htmlString = htmlString.replace("", "").replace("", "") + .replace("", "").replace("", "").replace("", + "").replace("", ""); + + if (all) + htmlString = htmlString.replace(">", ">").replace("<", "<"); + } return htmlString; } } // BarGraph