if class not found - write out variables
authorAlan Knowles <alan@roojs.com>
Fri, 28 Oct 2022 02:40:45 +0000 (10:40 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 28 Oct 2022 02:40:45 +0000 (10:40 +0800)
src/JsRender/NodeToVala.vala

index d4d9026..d83b7aa 100644 (file)
@@ -321,7 +321,7 @@ public class JsRender.NodeToVala : Object {
                if (cls == null) {
                        GLib.debug("Gir factory failed to find class %s", this.node.fqn());
                        
-                       return;
+                       //return;
                }
          
                
@@ -358,7 +358,7 @@ public class JsRender.NodeToVala : Object {
                        }
                        
                        // is it a class property...
-                       if (cls.props.has_key(prop.name) && prop.ptype != NodePropType.USER) {
+                       if (cls != null && cls.props.has_key(prop.name) && prop.ptype != NodePropType.USER) {
                                continue;
                        }