thunderbird-android icon indicating copy to clipboard operation
thunderbird-android copied to clipboard

Crash when draft is opened from the message list widget

Open cketti opened this issue 2 years ago • 3 comments

Checklist

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

App version

6.309

Where did you get the app from?

Google Play

Android version

various

Device model

No response

Steps to reproduce

  1. Add the message list widget to the home screen
  2. Save a message as a draft
  3. Include the contents of the drafts folder in the Unified Inbox
  4. Force close the app (to make sure a new instance of MessageList will be created later)
  5. Tap the draft message in the message list widget

Expected behavior

Don't crash

Actual behavior

Crash

Logs

Stack trace (via Google Play Developer Console):

Exception java.lang.RuntimeException:
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3676)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3813)
  at android.app.ActivityThread.handleRelaunchActivityInner (ActivityThread.java:5791)
  at android.app.ActivityThread.handleRelaunchActivity (ActivityThread.java:5682)
  at android.app.servertransaction.ActivityRelaunchItem.execute (ActivityRelaunchItem.java:71)
  at android.app.servertransaction.ActivityTransactionItem.execute (ActivityTransactionItem.java:45)
  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:2308)
  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:7898)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:548)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:936)
Caused by java.lang.IllegalStateException: Required value was null.
  at com.fsck.k9.activity.MessageList.showMessageView (MessageList.kt:1251)
  at com.fsck.k9.activity.MessageList.displayViews (MessageList.kt:345)
  at com.fsck.k9.activity.MessageList.onCreate (MessageList.kt:212)
  at android.app.Activity.performCreate (Activity.java:8290)
  at android.app.Activity.performCreate (Activity.java:8269)
  at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1384)
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3657)

cketti avatar Oct 24 '22 15:10 cketti

Hello @cketti Can you guide me about step 3 to reproduce the bug. I should copy or Move the message that is in the draft to Unified Inbox?

fereshtehamiri avatar Jun 19 '23 06:06 fereshtehamiri

See https://docs.k9mail.app/en/6.400/settings/folder/#unify

cketti avatar Jun 20 '23 13:06 cketti

hello @cketti I also did this scenario (samsung A32, android 13) In version 6.309, the crash happened, but in the new version(6.702), this issue has been resolved.

fereshtehamiri avatar Jul 09 '23 12:07 fereshtehamiri

hello @cketti I also did this scenario (samsung A32, android 13) In version 6.309, the crash happened, but in the new version(6.702), this issue has been resolved.

Hello. I tested this scenario on the latest version. And the bug is not repeated. And as a result, this bug can be closed. @cketti

mhf1998 avatar Aug 06 '24 02:08 mhf1998

Thank you for checking, much appreciated!

kewisch avatar Aug 06 '24 11:08 kewisch