thunderbird / thunderbird/thunderbird-android
Crash on Android 6 - Fragment LegacyMessageListFragment not attached to a context.
Open
@rafaeltonholo is already working on this.
Since Apr 9, 2026.
- Dominant language
- Kotlin
- Stars
- 14k
- Forks
- 2.8k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 57
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
18.0b3
Where did you get the app from?
F-Droid
Android version
Stock Android 6
Device model
No response
Steps to reproduce
Start app.
Expected behavior
Start app
Actual behavior
Crash:
Crash:
java.lang.RuntimeException: Unable to start activity ComponentInfo{net.thunderbird.android.beta/com.fsck.k9.activity.MessageHomeActivity}: java.lang.IllegalStateException: Fragment LegacyMessageListFragment{44c8bc7} (699d8f41-5e5b-4454-83cb-7a4ac81ba5dd id=0x7f0902a6) not attached to a context.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3319)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3415)
at android.app.ActivityThread.access$1100(ActivityThread.java:229)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1821)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7331)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: java.lang.IllegalStateException: Fragment LegacyMessageListFragment{44c8bc7} (699d8f41-5e5b-4454-83cb-7a4ac81ba5dd id=0x7f0902a6) not attached to a context.
at okhttp3.internal._UtilJvmKt$$ExternalSyntheticLambda0.m(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:36)
at androidx.fragment.app.Fragment.requireContext(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:16)
at androidx.fragment.app.Fragment.getDefaultViewModelCreationExtras(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:1)
at okhttp3.internal.http2.Http2Connection$ReaderRunnable.invoke(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:416)
at kotlin.UnsafeLazyImpl.getValue(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:12)
at com.fsck.k9.ui.messagelist.LegacyMessageListFragment.getLegacyViewModel(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:3)
at com.fsck.k9.ui.messagelist.LegacyMessageListFragment.setActiveMessage(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:3)
at com.fsck.k9.activity.MessageHomeActivity.showMessageList(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:39)
at com.fsck.k9.activity.MessageHomeActivity.displayViews(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:112)
at com.fsck.k9.activity.MessageHomeActivity.onCreate(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:247)
at android.app.Activity.performCreate(Activity.java:6904)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3266)
... 9 more
Logs
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.