Skip to content

Crash while configuring the drawer #8548

Open

Description

Checklist

  • I have used the search function to see if someone else has already submitted the same bug report.
  • I will describe the problem with as much detail as possible.

App

Thunderbird for Android

App version

8+ versions

Where did you get the app from?

Google Play

Android version

Android 14 + 15

Device model

Google Pixel 6

Steps to reproduce

Not known yet, but observed that there is a condition where the account object is set to null within initializeFromLocalSearch

Expected behavior

Should not crash.

Actual behavior

Crash

Logs

Exception java.lang.NullPointerException:
  at com.fsck.k9.activity.MessageList.configureDrawer (MessageList.kt:1399)
  at com.fsck.k9.activity.MessageList.initializeFromLocalSearch (MessageList.kt:1373)
  at com.fsck.k9.activity.MessageList.performSearch (MessageList.kt:683)
  at com.fsck.k9.activity.MessageList.openFolder (MessageList.kt:634)
  at com.fsck.k9.activity.MessageList.initializeFolderDrawer$lambda$14 (MessageList.kt:597)
  at app.k9mail.feature.navigation.drawer.ui.DrawerViewKt$DrawerView$$inlined$observe$2$1.emit (UnidirectionalViewModel.kt:99)
  at kotlinx.coroutines.flow.SharedFlowImpl.collect$suspendImpl (SharedFlow.kt:397)
  at kotlinx.coroutines.flow.SharedFlowImpl$collect$1.invokeSuspend (SharedFlow.kt)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:33)
  at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:101)
  at androidx.compose.ui.platform.AndroidUiDispatcher.performTrampolineDispatch (AndroidUiDispatcher.android.kt:81)
  at androidx.compose.ui.platform.AndroidUiDispatcher.access$setScheduledFrameDispatch$p (AndroidUiDispatcher.android.kt:41)
  at androidx.compose.ui.platform.AndroidUiDispatcher.access$performTrampolineDispatch (AndroidUiDispatcher.android.kt:41)
  at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.run (AndroidUiDispatcher.android.kt:57)
  at android.os.Handler.handleCallback (Handler.java:958)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:230)
  at android.os.Looper.loop (Looper.java:319)
  at android.app.ActivityThread.main (ActivityThread.java:9063)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:588)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething is causing incorrect behavior or errorstype: crashIssues that involve fixing a crash or ANR

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions