realm-dotnet: Android Xamarin.Forms setting ListView.SelectedItem = null causes app to hang/crash when using IQueryable as ItemsSource in v1.6.0

I’m attaching a solution which reproduces an issue I’m having since updating to 1.6.0 of Realm.

Basically, on Android, when we have a Xamarin.Forms ListView and use IQueryable<TRealmObject> as the ItemsSource and inside the ListView.ItemSelected event handler, set the ListView.SelectedItem = null; it’s causing the app to crash / hang without a usable managed stack trace.

This works fine in v1.5.0 of Realm. It does not seem to affect iOS.

RealmFormsSelectedItemRepro.zip

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 21 (5 by maintainers)

Most upvoted comments