Unplanned
Last Updated: 05 Oct 2020 12:07 by ADMIN
Kori
Created on: 02 Oct 2020 14:02
Category: ListView
Type: Bug Report
1
[Android] null items in ListView ItemsSource causes NullReferenceException

When an item in the ItemsSource of a ListView is null, a NullReferenceException will be raised on Android when the items source is loaded to the list view.  Even if a DataTemplateSelector is applied to display a different datatemplate for null items, the app would still crash.

I attached a sample program that demonstrates the issue.  On iOS the app runs fine, but on Android the app crash at launch with a NullReferenceException.

Thanks,
Kori

Attached Files:
1 comment
ADMIN
Yana
Posted on: 05 Oct 2020 12:07

Hello Kori, 

Thank you for the detailed report - indeed, this is an issue on our side, currently RadListView does not accept ItemsSource with null values. I have updated this item to a public bug report, so you can track the status of the issue in our Feedback Portal.

I've also updated your points for bringing this to our attention.

Let me know if I can assist with anything else.

Regards,
Yana
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.