NAXAM/bottomtabbedpage-xamarin-forms

Crash with BottomTabbedRendererUtils.ChangePage

yinchengvy opened this issue · 0 comments

Hi, I've got a crash.

BottomTabbedPage 2.0.3
Xamarin.Forms 3.1.0

BottomTabbedRendererUtils.ChangePage (Naxam.Controls.Platform.Droid.BottomTabbedRenderer renderer, Android.Widget.FrameLayout pageContainer, Xamarin.Forms.Page page)
Java.Lang.RuntimeException: Attempt to invoke virtual method 'void android.support.v7.widget.GapWorker.remove(android.support.v7.widget.RecyclerView)' on a null object reference

ExceptionDispatchInfo.Throw ()
JniEnvironment+InstanceMethods.CallVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args)
JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters)
ViewGroup.RemoveViewAt (System.Int32 index)
BottomTabbedRendererUtils.ChangePage (Naxam.Controls.Platform.Droid.BottomTabbedRenderer renderer, Android.Widget.FrameLayout pageContainer, Xamarin.Forms.Page page)
BottomTabbedRenderer.OnElementPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e)
(wrapper delegate-invoke) .invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
BindableObject.OnPropertyChanged (System.String propertyName)
Element.OnPropertyChanged (System.String propertyName)
MultiPage`1[T].OnPropertyChanged (System.String propertyName)
MultiPage`1[T].set_CurrentPage (T value)
BottomTabbedRendererUtils.SwitchPage (Naxam.Controls.Platform.Droid.BottomTabbedRenderer renderer, Android.Views.IMenuItem item)
BottomTabbedRenderer.OnNavigationItemSelected (Android.Views.IMenuItem item)
BottomNavigationView+IOnNavigationItemSelectedListenerInvoker.n_OnNavigationItemSelected_Landroid_view_MenuItem_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_item)

How can I fix it?