C
C#2y ago
Nutter

QueryParameter .NET MAUI

the query parameter Id is not being set correctly in my viewmodel .when using breakpoints I am able to see in the SetProperty function the value param shows as the correct value but it isnt actually setting the value
5 Replies
Amoeba
Amoeba2y ago
id is null Try changing the value of id to "" or string.Empty
Anxoul
Anxoul2y ago
Yup system.nullreference exception
Amoeba
Amoeba2y ago
And enable nullable in your project
Anxoul
Anxoul2y ago
that'd be .csproj isn't it?
Amoeba
Amoeba2y ago
Yup
Want results from more Discord servers?
Add your server