Check map before save.

This commit is contained in:
Paulo Gustavo Veiga
2013-02-27 23:08:37 -03:00
parent 6155a70c04
commit b5a7a11920
2 changed files with 14 additions and 8 deletions

View File

@@ -162,13 +162,6 @@ public class MindmapController extends BaseController {
if (xml == null) {
throw new IllegalArgumentException("Map xml can not be null");
}
// Check that what we received a valid mindmap...
xml = xml.trim();
if (!xml.startsWith("<map") || !xml.endsWith("</map>")) {
throw new IllegalArgumentException("Map seems not to be a valid mindmap:"+xml);
}
mindmap.setXmlStr(xml);
// Update map ...