Bug java.lang.NullPointerException

at com.wisemapping.exporter.FreemindExporter.addNote(FreemindExporter.java:170)
fixed.
This commit is contained in:
Paulo Gustavo Veiga
2012-08-30 20:43:56 -03:00
parent 4b76fe42bf
commit df52d57a1d
7 changed files with 202 additions and 35 deletions

View File

@@ -174,6 +174,11 @@ public class FreemindExporter
if (textNote == null || textNote.isEmpty()) {
textNote = mindmapTopic.getNote().getText();
}
// @Todo: For some reason central topic nodes with CDATA seems not to be loaded in the JAXB model.
// Temporally excluding and continue ..
textNote = (textNote != null) ? textNote : "";
textNote = textNote.replaceAll("%0A", "\n");
note.setNAME("accessories/plugins/NodeNote.properties");
note.setText(textNote);