microspaze / CarouselView.Maui

CarouselView controls for .NET MAUI
MIT License
47 stars 7 forks source link

System.NullReferenceException in CarouselViewRenderer.UpdateCurrentPage #6

Open vector-perfect opened 4 months ago

vector-perfect commented 4 months ago

Description

Our application has a shell and a CarouselView on one of the tabs. When switching between tabs quickly, there is a possibility of getting System.NullReferenceException. image

Version with bug

1.0.8

Affected platforms

Android

Relevant log output

CarouselView.Droid.CarouselViewRenderer.UpdateCurrentPage()
CarouselView.Droid.CarouselViewRenderer.OnElementLoaded(Object sender, EventArgs e)
System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
Android.App.SyncContext.<>c__DisplayClass2_0.<Post>b__0()
Java.Lang.Thread.RunnableImplementor.Run()
Java.Lang.IRunnableInvoker.n_Run(IntPtr jnienv, IntPtr native__this)
Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PP_V(_JniMarshal_PP_V callback, IntPtr jnienv, IntPtr klazz)
microspaze commented 4 months ago

PR has been merged in latest version 1.0.9 https://www.nuget.org/packages/CarouselView.Maui/1.0.9

Thanks very much for the PR.