Open kycuff opened 2 days ago
This is the second time we have ran into this, with no obvious cause.
And only workaround we have so far is to create another property higher up in the model to bind to, i.e. -
public partial class InstalmentPlans
{
public string LatestFinancialYear => InstalmentPlan[0].FinancialYear;
public InstalmentPlan[] InstalmentPlan { get; set; }
}
But we have other bits of XAML accessing a similar data structure without an issue -
This issue has been verified using Visual Studio 17.13 Preview 1(9.0.0-rc.2.24503.2 & 8.0.40 & 8.0.3 & 8.0.93). Can repro this issue.
Description
When trying to bind a label's text to a back end property that has a complex model I am getting this error:
"Object reference not set to an instance of an object."
An example of this can be found in the reproduction repo for the label:
Here is the data model:
Steps to Reproduce
Link to the reproduction link below
Link to public reproduction project repository
https://github.com/kycuff/TestApp.git
Version with bug
8.0.40 SR5
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 13
Did you find any workaround?
Create a new field within the code behind file to retrieve UsersData.InstalmentPlans.InstalmentPlan[0].FinancialYear and bind that to the label
Relevant log output