check not null first.
authorAlan <alan@roojs.com>
Tue, 19 Jul 2022 09:28:43 +0000 (17:28 +0800)
committerAlan <alan@roojs.com>
Tue, 19 Jul 2022 09:28:43 +0000 (17:28 +0800)
src/Builder4/ValaCompileErrors.bjs
src/Builder4/ValaCompileErrors.vala
src/Builder4/WindowState.vala

index f91ee75..1d61a3c 100644 (file)
     "\t\t            -1);",
     "        ",
     "        });",
-    "        ",
-    "        ",
+    "         ",
     "    ",
     "    });",
     "      ",
index b0f05c4..4f11416 100644 (file)
@@ -94,8 +94,7 @@ public class Xcls_ValaCompileErrors : Object
                            -1);
             
             });
-            
-            
+             
         
         });
           
index 1c1208f..5260d61 100644 (file)
@@ -919,7 +919,10 @@ public class WindowState : Object
                        // vala has finished compiling...
                        GLib.debug("vala compiled");
                        // stop the spinner...
-                       if (this.project.fn != BuilderApplication.valasource.file.project.fn) {
+                       if (this.project != null && 
+                       BuilderApplication.valasource.file != null &&   
+                       BuilderApplication.valasource.file.project != null &&                           
+                           this.project.fn != BuilderApplication.valasource.file.project.fn) {
                                GLib.debug("skip update - not our project");
                                return;
                        }