Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Created attachment 19404 [details]
Simply testing cache strategy "RecycleElement" throws a null reference.
Xamarin Studio Community
Version 6.1.4 (build 1)
Version: 220.127.116.11 (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)
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)
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?
*** Bug 51707 has been marked as a duplicate of this bug. ***
Same stack trace and apparent cause. Marking as duplicate of 51429.
*** This bug has been marked as a duplicate of bug 51429 ***