-
Notifications
You must be signed in to change notification settings - Fork 113
Open
Description
I have a bottom sheet that I sometimes hide by unmounting the <BottomSheetBehavior />.
Occasionally, when it hides, the application crashes.
Here's the stack trace:
03-07 22:27:05.252 3848 3848 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.bottomsheetbehavior.RNBottomSheetBehavior.getPeekHeight()' on a null object reference
03-07 22:27:05.252 3848 3848 E AndroidRuntime: at com.bottomsheetbehavior.BackdropBottomSheetBehavior.onDependentViewChanged(BackdropBottomSheetBehavior.java:83)
03-07 22:27:05.252 3848 3848 E AndroidRuntime: at androidx.coordinatorlayout.widget.CoordinatorLayout.onChildViewsChanged(CoordinatorLayout.java:1393)
03-07 22:27:05.252 3848 3848 E AndroidRuntime: at androidx.coordinatorlayout.widget.CoordinatorLayout$OnPreDrawListener.onPreDraw(CoordinatorLayout.java:2023)
03-07 22:27:05.252 3848 3848 E AndroidRuntime: at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:977)
03-07 22:27:05.252 3848 3848 E AndroidRuntime: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2474)
03-07 22:27:05.252 3848 3848 E AndroidRuntime: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1460)
03-07 22:27:05.252 3848 3848 E AndroidRuntime: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7183)
03-07 22:27:05.252 3848 3848 E AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:949)
03-07 22:27:05.252 3848 3848 E AndroidRuntime: at android.view.Choreographer.doCallbacks(Choreographer.java:761)
03-07 22:27:05.252 3848 3848 E AndroidRuntime: at android.view.Choreographer.doFrame(Choreographer.java:696)
03-07 22:27:05.252 3848 3848 E AndroidRuntime: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935)
03-07 22:27:05.252 3848 3848 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:873)
03-07 22:27:05.252 3848 3848 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
03-07 22:27:05.252 3848 3848 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
03-07 22:27:05.252 3848 3848 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6680)
03-07 22:27:05.252 3848 3848 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
03-07 22:27:05.252 3848 3848 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
03-07 22:27:05.252 3848 3848 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
03-07 22:27:05.256 1166 6174 W ActivityManager: Force finishing activity com.codeblogcorp.covy/.MainActivityMetadata
Metadata
Assignees
Labels
No labels