Fix #8003 - undo code
[roobuilder] / src / Builder4 / WindowLeftProps.bjs
index 6e91f28..5cf405d 100644 (file)
     "\t\t ",
     "\t\t\t",
     "\t\t\treading_header = false;",
-    "\t\t\t ",
+    "\t\t\tcontinue;",
     "\t    }",
     "\t    ",
     "\t  \tif (child.has_css_class(\"node-err\")) {",
    "| void updateErrors" : [
     "() {",
     "\tvar file = this.file;",
+    "\tif (file == null) {",
+    "\t\treturn;",
+    "\t}",
     "\tvar ar = file.getErrors();",
-    "\tif (ar.size < 1) {",
+    "\tif (ar == null || ar.size < 1) {",
     "\t\tif (this.last_error_counter != file.error_counter) {",
     "\t\t\tthis.removeErrors();",
     "\t\t}",