Fix NPE with empty node text.

This commit is contained in:
Paulo Gustavo Veiga 2012-11-02 00:47:55 -03:00
parent 806bb96ce1
commit 27a82d9e41

View File

@ -165,12 +165,14 @@ public class FreemindExporter
}
// Formated text have a different representation ....
if (text != null) {
if (!text.contains("\n")) {
freemindNode.setTEXT(text);
} else {
final Richcontent richcontent = buildRichContent(text, "NODE");
freemindNode.getArrowlinkOrCloudOrEdge().add(richcontent);
}
}
freemindNode.setBACKGROUNDCOLOR(mindmapTopic.getBgColor());
final String shape = mindmapTopic.getShape();