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)
and
Exception java.lang.RuntimeException:
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3685)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3825)
at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:101)
at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2317)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loopOnce (Looper.java:201)
at android.os.Looper.loop (Looper.java:288)
at android.app.ActivityThread.main (ActivityThread.java:7972)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:586)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:942)
Caused by 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.findFragments (MessageList.kt:258)
at com.fsck.k9.activity.MessageList.onCreate (MessageList.kt:186)
at android.app.Activity.performCreate (Activity.java:8291)
at android.app.Activity.performCreate (Activity.java:8270)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1385)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3666)