You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I can gather, if you x:Bind to a chain of properties, the framework will check for null values at each step and won't carry on if it encounters a null value.
But if you x:Bind to a chain of properties with a function as the leaf step, and there's any null value along the chain, the application will crash with an access violation.
Is that the expected behavior or a bug? Thanks for any thoughts or input. And just to clarify, my question is about null checks for the path, not the function argument.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
From what I can gather, if you
x:Bindto a chain of properties, the framework will check for null values at each step and won't carry on if it encounters a null value.But if you
x:Bindto a chain of properties with a function as the leaf step, and there's any null value along the chain, the application will crash with an access violation.Is that the expected behavior or a bug? Thanks for any thoughts or input. And just to clarify, my question is about null checks for the path, not the function argument.
Beta Was this translation helpful? Give feedback.
All reactions