Fix #8003 - undo code
[roobuilder] / src / Builder4 / WindowLeftProps.vala
index 8cf971b..1941dcd 100644 (file)
@@ -88,8 +88,11 @@ public class Xcls_LeftProps : Object
        }
        public void updateErrors () {
                var file = this.file;
+               if (file == null) {
+                       return;
+               }
                var ar = file.getErrors();
-               if (ar.size < 1) {
+               if (ar == null || ar.size < 1) {
                        if (this.last_error_counter != file.error_counter) {
                                this.removeErrors();
                        }
@@ -261,7 +264,7 @@ public class Xcls_LeftProps : Object
                         
                                
                                reading_header = false;
-                                
+                               continue;
                    }
                    
                        if (child.has_css_class("node-err")) {