src/Builder4/Editor.bjs
[app.Builder.js] / src / Builder4 / Editor.vala
index 20a2240..f2d3923 100644 (file)
@@ -544,11 +544,14 @@ public class Editor : Object
             
             
             var err = obj.get_object_member(type);
-            var valafn = _this.file.path;
+            
+            
             if (_this.file == null) {
-                return;
-            }
+                return true;
             
+            }
+            var valafn = _this.file.path;
+         
             if (_this.file.xtype != "PlainFile") {
         
         
@@ -557,7 +560,8 @@ public class Editor : Object
                  valafn = "";
                   try {             
                        var  regex = new Regex("\\.bjs$");
-                    
+                       // should not happen
+                      
                      
                         valafn = regex.replace(_this.file.path,_this.file.path.length , 0 , ".vala");
                      } catch (GLib.RegexError e) {