fixing freemind export npe

This commit is contained in:
Pablo Luna 2011-03-13 15:11:14 +00:00
parent 09d57bfc03
commit 331652ad74

View File

@ -120,9 +120,11 @@ 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();
String xPos = position.split(",")[0]; if(position!=null){
int x = Integer.valueOf(xPos); String xPos = position.split(",")[0];
newNode.setPOSITION((x<0?POSITION_LEFT:POSITION_RIGHT)); int x = Integer.valueOf(xPos);
newNode.setPOSITION((x<0?POSITION_LEFT:POSITION_RIGHT));
}
} }
} }