Fix NPE with empty node text.
parent
806bb96ce1
commit
27a82d9e41
|
@ -165,11 +165,13 @@ public class FreemindExporter
|
||||||
}
|
}
|
||||||
|
|
||||||
// Formated text have a different representation ....
|
// Formated text have a different representation ....
|
||||||
if (!text.contains("\n")) {
|
if (text != null) {
|
||||||
freemindNode.setTEXT(text);
|
if (!text.contains("\n")) {
|
||||||
} else {
|
freemindNode.setTEXT(text);
|
||||||
final Richcontent richcontent = buildRichContent(text, "NODE");
|
} else {
|
||||||
freemindNode.getArrowlinkOrCloudOrEdge().add(richcontent);
|
final Richcontent richcontent = buildRichContent(text, "NODE");
|
||||||
|
freemindNode.getArrowlinkOrCloudOrEdge().add(richcontent);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
freemindNode.setBACKGROUNDCOLOR(mindmapTopic.getBgColor());
|
freemindNode.setBACKGROUNDCOLOR(mindmapTopic.getBgColor());
|
||||||
|
|
Loading…
Reference in New Issue