From aebf8be278f64115d0bc6869cf928b5ffda70abd Mon Sep 17 00:00:00 2001 From: James Westman Date: Sat, 13 May 2023 14:56:38 -0500 Subject: [PATCH] Fix a bug found by the fuzzer --- blueprintcompiler/language/adw_breakpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprintcompiler/language/adw_breakpoint.py b/blueprintcompiler/language/adw_breakpoint.py index 20d0b89..addbd8a 100644 --- a/blueprintcompiler/language/adw_breakpoint.py +++ b/blueprintcompiler/language/adw_breakpoint.py @@ -96,7 +96,7 @@ class AdwBreakpointSetter(AstNode): # This happens for classes defined by the app itself return - if self.gir_property is None: + if self.gir_property is None and self.property_name is not None: raise CompileError( f"Class {self.gir_class.full_name} does not have a property called {self.property_name}", did_you_mean=(self.property_name, self.gir_class.properties.keys()),