From ac8309819c47f9f5752c8ed796ad8b04975b6f87 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Thu, 22 Nov 2012 00:05:46 -0300 Subject: [PATCH] Fix Firefox issue with null values. --- .../src/main/java/com/wisemapping/view/MindMapBean.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/view/MindMapBean.java b/wise-webapp/src/main/java/com/wisemapping/view/MindMapBean.java index d568a657..751f56e2 100644 --- a/wise-webapp/src/main/java/com/wisemapping/view/MindMapBean.java +++ b/wise-webapp/src/main/java/com/wisemapping/view/MindMapBean.java @@ -125,7 +125,10 @@ public class MindMapBean { } public String getXmlAsJsLiteral() throws IOException { - return this.mindmap.getXmlAsJsLiteral(); + final String result = this.mindmap.getXmlAsJsLiteral(); + + // Firefox is failing for this. Need to be reviewed ... + return result.replace("\\u0000", ""); } public String getProperties() throws WiseMappingException {