mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
fixing freemind export npe
This commit is contained in:
parent
09d57bfc03
commit
331652ad74
@ -120,11 +120,13 @@ public class FreemindExporter
|
|||||||
destNode.getArrowlinkOrCloudOrEdge().add(newNode);
|
destNode.getArrowlinkOrCloudOrEdge().add(newNode);
|
||||||
addNodeFromTopic(topicType, newNode);
|
addNodeFromTopic(topicType, newNode);
|
||||||
String position = topicType.getPosition();
|
String position = topicType.getPosition();
|
||||||
|
if(position!=null){
|
||||||
String xPos = position.split(",")[0];
|
String xPos = position.split(",")[0];
|
||||||
int x = Integer.valueOf(xPos);
|
int x = Integer.valueOf(xPos);
|
||||||
newNode.setPOSITION((x<0?POSITION_LEFT:POSITION_RIGHT));
|
newNode.setPOSITION((x<0?POSITION_LEFT:POSITION_RIGHT));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void setTopicPropertiesToNode(com.wisemapping.xml.freemind.Node freemindNode, com.wisemapping.xml.mindmap.TopicType mindmapTopic) {
|
private void setTopicPropertiesToNode(com.wisemapping.xml.freemind.Node freemindNode, com.wisemapping.xml.mindmap.TopicType mindmapTopic) {
|
||||||
freemindNode.setID("ID_" + mindmapTopic.getId());
|
freemindNode.setID("ID_" + mindmapTopic.getId());
|
||||||
|
Loading…
Reference in New Issue
Block a user