src/Palete/Gtk.vala
authorAlan Knowles <alan@roojs.com>
Fri, 29 May 2015 07:20:32 +0000 (15:20 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 29 May 2015 07:20:32 +0000 (15:20 +0800)
src/Palete/Gtk.vala

index 77da236..5eb5e9a 100644 (file)
@@ -371,6 +371,7 @@ namespace Palete {
                                var is_last = i == parts.length -1;
                                
                                
+                                
                                // look up all the properties of the type...
                                var cls = Gir.factoryFqn(curtype);
                                if (cls == null && curtype[0] != '*') {
@@ -474,7 +475,9 @@ namespace Palete {
                                        return ret;
                                }
                                print("matching property");
-                               
+                               if (cls == null) {
+                                       return ret;
+                               }
                                
                                
                                var citer = cls.methods.map_iterator();