hey <@U0234N0QYSK>, I'm currently experiencing a c...
# compose-destinations
r
hey @Rafael Costa, I'm currently experiencing a crash
Copy code
Fatal Exception: java.lang.NullPointerException:
       at androidx.compose.material.navigation.BottomSheetNavigator$sheetContent$1$2$1.invoke(BottomSheetNavigator.java:182)
       at androidx.compose.material.navigation.BottomSheetNavigator$sheetContent$1$2$1.invoke(BottomSheetNavigator.java:181)
       at androidx.activity.compose.BackHandlerKt$BackHandler$backCallback$1$1.handleOnBackPressed(BackHandler.kt:89)
       at androidx.activity.OnBackPressedDispatcher.onBackPressed(OnBackPressedDispatcher.kt:260)
       at androidx.activity.ComponentActivity.onBackPressed(ComponentActivity.kt:588)
       at android.app.Activity.onKeyUp(Activity.java:4157)
       at android.view.KeyEvent.dispatch(KeyEvent.java:3522)
where sheet content is null. My destinations that use the bottom sheet are styled as such:
Copy code
@Destination<RootGraph>(style = DestinationStyleBottomSheet::class)
Would you prefer if I open a github ticket to discuss this? I don't have much information since I can't reproduce it locally, but it's a fairly frequent crash in production. composeDestination = "2.1.0-beta12" I'll upgrade to 2.2.0 in the meanwhile and monitor as well.
r
Do you have full stacktrace?
doesn't look like a Compose Destinations issue though 🤔
r
yeah one sec!
Copy code
Fatal Exception: java.lang.NullPointerException:
       at androidx.compose.material.navigation.BottomSheetNavigator$sheetContent$1$2$1.invoke(BottomSheetNavigator.java:182)
       at androidx.compose.material.navigation.BottomSheetNavigator$sheetContent$1$2$1.invoke(BottomSheetNavigator.java:181)
       at androidx.activity.compose.BackHandlerKt$BackHandler$backCallback$1$1.handleOnBackPressed(BackHandler.kt:89)
       at androidx.activity.OnBackPressedDispatcher.onBackPressed(OnBackPressedDispatcher.kt:260)
       at androidx.activity.ComponentActivity.onBackPressed(ComponentActivity.kt:588)
       at android.app.Activity.onKeyUp(Activity.java:3954)
       at android.view.KeyEvent.dispatch(KeyEvent.java:2884)
       at android.app.Activity.dispatchKeyEvent(Activity.java:4284)
       at androidx.core.app.ComponentActivity.superDispatchKeyEvent(ComponentActivity.java:96)
       at androidx.core.view.KeyEventDispatcher.dispatchKeyEvent(KeyEventDispatcher.java:85)
       at androidx.core.app.ComponentActivity.dispatchKeyEvent(ComponentActivity.java:110)
       at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:433)
       at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:6595)
       at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:6442)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5900)
       at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5957)
       at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5923)
       at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:6088)
       at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5931)
       at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:6145)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5904)
       at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5957)
       at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5923)
       at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5931)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5904)
       at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5957)
       at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5923)
       at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:6121)
       at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:6295)
       at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:3158)
       at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:2722)
       at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:2713)
       at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:3135)
       at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:154)
       at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
       at android.os.MessageQueue.next(MessageQueue.java:337)
       at android.os.Looper.loopOnce(Looper.java:168)
       at android.os.Looper.loop(Looper.java:299)
       at android.app.ActivityThread.main(ActivityThread.java:8261)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)
r
yap, does not reference compose destinations. Have you googled for it?
r
yeah... each ticket is closed because they were opened against the accompanist lib and it was merged into the general compose navigations lib. I'll keep searching
👍 1