Bug 42580 - Forms.ListView crashes when ItemSource has item removed and another inserted
Summary: Forms.ListView crashes when ItemSource has item removed and another inserted
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.1
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL: https://forums.xamarin.com/discussion...
Depends on:
Reported: 2016-07-15 02:12 UTC by Praga Siva
Modified: 2016-08-05 13:59 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

Stack Trace (825 bytes, text/plain)
2016-07-15 02:12 UTC, Praga Siva
Reproduction App (236.24 KB, application/x-zip-compressed)
2016-07-18 01:40 UTC, Praga Siva

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Praga Siva 2016-07-15 02:12:32 UTC
Created attachment 16675 [details]
Stack Trace

When I try to remove items with custom Item Template from ListView I get a System.NullReferenceException: Object reference not set to an instance of an object on iOS version. Android version seems to work fine.
Comment 1 Paul DiPietro [MSFT] 2016-07-15 17:07:49 UTC
If you could please upload a reproduction to help with investigating this issue, it would be much appreciated.
Comment 2 Praga Siva 2016-07-17 23:38:22 UTC
Hi Paul, 

I have implemented a potential fix and created a pull request (https://github.com/xamarin/Xamarin.Forms/pull/258), please let me know if you still require a reproduction.
Comment 3 Praga Siva 2016-07-18 01:40:49 UTC
Created attachment 16700 [details]
Reproduction App

I have taken this from https://bugzilla.xamarin.com/show_bug.cgi?id=40704 App and added the custom view
Comment 4 Samantha Houts [MSFT] 2016-07-19 01:38:43 UTC
Should be fixed in 2.3.2-pre1. Thanks!
Comment 5 Parmendra Kumar 2016-08-05 13:59:53 UTC
I have checked this issue with 2.3.2-pre1 and observed that this issue is working fine.

Hence closing this issue.