From 3cd5daf025ac71752a1f6b83d588b52407e4103a Mon Sep 17 00:00:00 2001 From: James Westman Date: Thu, 7 Sep 2023 12:13:05 -0500 Subject: [PATCH] Fix a crash found by the fuzzer --- blueprintcompiler/language/gtkbuilder_child.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprintcompiler/language/gtkbuilder_child.py b/blueprintcompiler/language/gtkbuilder_child.py index 52c8ad4..3f19fa5 100644 --- a/blueprintcompiler/language/gtkbuilder_child.py +++ b/blueprintcompiler/language/gtkbuilder_child.py @@ -88,7 +88,7 @@ class Child(AstNode): hints = [ "only Gio.ListStore or Gtk.Buildable implementors can have children" ] - if "child" in gir_class.properties: + if hasattr(gir_class, "properties") and "child" in gir_class.properties: hints.append( "did you mean to assign this object to the 'child' property?" )