mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-05 07:03:24 +01:00
Fix NPE with empty node text.
This commit is contained in:
parent
806bb96ce1
commit
27a82d9e41
@ -165,12 +165,14 @@ public class FreemindExporter
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Formated text have a different representation ....
|
// Formated text have a different representation ....
|
||||||
|
if (text != null) {
|
||||||
if (!text.contains("\n")) {
|
if (!text.contains("\n")) {
|
||||||
freemindNode.setTEXT(text);
|
freemindNode.setTEXT(text);
|
||||||
} else {
|
} else {
|
||||||
final Richcontent richcontent = buildRichContent(text, "NODE");
|
final Richcontent richcontent = buildRichContent(text, "NODE");
|
||||||
freemindNode.getArrowlinkOrCloudOrEdge().add(richcontent);
|
freemindNode.getArrowlinkOrCloudOrEdge().add(richcontent);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
freemindNode.setBACKGROUNDCOLOR(mindmapTopic.getBgColor());
|
freemindNode.setBACKGROUNDCOLOR(mindmapTopic.getBgColor());
|
||||||
final String shape = mindmapTopic.getShape();
|
final String shape = mindmapTopic.getShape();
|
||||||
|
Loading…
Reference in New Issue
Block a user