diff --git a/src/Uno.Extensions.Navigation.Generators/ForceBindingsUpdateGenTool_1.cs b/src/Uno.Extensions.Navigation.Generators/ForceBindingsUpdateGenTool_1.cs index db1ec6db63..0699f3c13e 100644 --- a/src/Uno.Extensions.Navigation.Generators/ForceBindingsUpdateGenTool_1.cs +++ b/src/Uno.Extensions.Navigation.Generators/ForceBindingsUpdateGenTool_1.cs @@ -61,8 +61,11 @@ private string Generate(INamedTypeSymbol model) bases: updateInterface, code: $@" ValueTask IForceBindingsUpdate.ForceBindingsUpdateAsync() - {{ - this.Bindings.Update(); + {{ + if(this.Bindings is not null) + {{ + this.Bindings.Update(); + }} return ValueTask.CompletedTask; }} ");