Changed src/Palete/Gtk.vala
authorAlan <alan@roojs.com>
Wed, 29 Jun 2022 04:53:26 +0000 (12:53 +0800)
committerAlan <alan@roojs.com>
Wed, 29 Jun 2022 04:53:26 +0000 (12:53 +0800)
src/Palete/Gtk.vala

index 5e0a023..fc31a2d 100644 (file)
@@ -307,6 +307,9 @@ namespace Palete {
                        var localopts_l = new Gee.ArrayList<string>();
                        localopts_l.add(parent);
                        
+                       if (cls_cn == null) {
+                               return;
+                       }
                        if (!cls_cn.is_abstract) { // and check for interface?
                        
                                localopts_r.add(child + ( prop.length > 0 ? ":" + prop : "") );