OSDN Git Service

Alter save thread logic so that if an error happens, a message box is produced rather...
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / evernote / EnmlConverter.java
index a6359a1..ca23846 100644 (file)
@@ -105,7 +105,7 @@ public class EnmlConverter {
                        logger.log(logger.LOW, "End of modified note HTML");\r
 //                             logger.log(logger.LOW, result.errorMessage);\r
 //                             logger.log(logger.LOW, "Error Line:Column "+result.errorLine+":" +result.errorColumn);\r
-                       System.exit(16);\r
+                       return null;\r
 \r
 \r
                }\r
@@ -206,6 +206,9 @@ public class EnmlConverter {
 \r
        // Fix XML that Evernote thinks is invalid\r
        public String fixEnXMLCrap(String note) {\r
+               if (note == null)\r
+                       return null;\r
+               \r
                int pos;\r
                StringBuffer buffer = new StringBuffer(note);\r
                \r