src/Palete/Palete.vala
[app.Builder.js] / src / Palete / Gir.vala
index 395cf56..0b60527 100644 (file)
@@ -65,10 +65,11 @@ namespace Palete {
                                return;
                        }
                        var method = parset.gparent;
-                       //if (method == null || method.nodetype != "Ctor") {
-                       //      print("skip parent.parent not Ctor\n");
-                       //      return;
-                       //}
+                       // we can do this for pack methods..
+                       if (method == null) {
+                               print("skip parent.parent is null\n");
+                               return;
+                       }
                        var cls = method.gparent;
                        if (cls == null || cls.nodetype != "Class") {
                                //print("skip parent.parent.parent not Class\n");