Follow up to #1378: NullRef exception in Target Binding when using a value type + fix #3343
Closed
1 of 7 tasks
Labels
Milestone
馃悰 Bug Report
When creating a target binding to a value type using the generic class, SetValue will fail in the conversion from null to the value type, as the value type can not be null.
Expected behavior
No exception.
Reproduction steps
I tracked the problem to be in class
MvxTargetBinding<TTarget, TValue>
.The problem is the conversion from null to a value type (here a "bool") which can not be null.
I don't know why the binding would send null in first place.
The caller is
C:\projects\mvvmcross\MvvmCross\Binding\Bindings\MvxFullBinding.cs:181,25
This can be reproduced easily by creating a binding for "Selected" on Android, then binding a bool value to the Selected property of any view:
A solution would be to update
MvxTargetBinding<TTarget, TValue>
:Configuration
Version: 6.2.3
Platform:
The text was updated successfully, but these errors were encountered: