Bug 51645 - Scrolling in a ListView with RecycleElement and default ItemTemplate throws a null reference
Summary: Scrolling in a ListView with RecycleElement and default ItemTemplate throws a...
Status: RESOLVED DUPLICATE of bug 51429
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.3
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
: 51707 ()
Depends on:
Blocks:
 
Reported: 2017-01-19 18:53 UTC by Pete Schmitz
Modified: 2017-02-15 22:42 UTC (History)
5 users (show)

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


Attachments
Reproduction project (299.01 KB, application/zip)
2017-01-19 18:53 UTC, Pete Schmitz
Details


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:
Status:
RESOLVED DUPLICATE of bug 51429

Description Pete Schmitz 2017-01-19 18:53:32 UTC
Created attachment 19404 [details]
Reproduction project

Simply testing cache strategy "RecycleElement" throws a null reference.

Xamarin Studio Community
Version 6.1.4 (build 1)

Xamarin.Android
Version: 7.0.2.42 (Xamarin Studio Community)

SDK Tools Version: 25.2.5
SDK Platform Tools Version: 25.0.3
SDK Build Tools Version: 24.0.1

Java SDK: /usr
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Comment 1 Pete Schmitz 2017-01-19 19:06:55 UTC
No exception is thrown when a custom template is provided.

Exception for default template:


[MonoDroid] UNHANDLED EXCEPTION:
[MonoDroid] System.NullReferenceException: Object reference not set to an instance of an object.
[MonoDroid]   at Xamarin.Forms.Platform.Android.ListViewAdapter.GetView (System.Int32 position, Android.Views.View convertView, Android.Views.ViewGroup parent) [0x000ef] in C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Renderers\ListViewAdapter.cs:223 
[MonoDroid]   at Android.Widget.BaseAdapter.n_GetView_ILandroid_view_View_Landroid_view_ViewGroup_ (System.IntPtr jnienv, System.IntPtr native__this, System.Int32 position, System.IntPtr native_convertView, System.IntPtr native_parent) [0x0001a] in /Users/builder/data/lanes/3511/501e63ce/source/monodroid/src/Mono.Android/platforms/android-24/src/generated/Android.Widget.BaseAdapter.cs:443 
[MonoDroid]   at (wrapper dynamic-method) System.Object:c895ed73-2fdd-402c-a990-a2e0b86aa15f (intptr,intptr,int,intptr,intptr)
Comment 2 Paul DiPietro [MSFT] 2017-02-15 15:50:57 UTC
I'm unable to reproduce this on an Android 6 emulator using the reproduction attached. Could you provide some more information on the emulator/device you're using when this crash occurs, if you're still experiencing it with the latest stable/prerelease?
Comment 3 Samantha Houts [MSFT] 2017-02-15 18:44:09 UTC
*** Bug 51707 has been marked as a duplicate of this bug. ***
Comment 4 Samantha Houts [MSFT] 2017-02-15 18:49:57 UTC
Same stack trace and apparent cause. Marking as duplicate of 51429.

*** This bug has been marked as a duplicate of bug 51429 ***