Check isInitialized before updating footer text#10483
Check isInitialized before updating footer text#10483Goooler wants to merge 1 commit intothunderbird:mainfrom
Conversation
This exception happens when opening the app when it's recycled (I guess). ``` kotlin.UninitializedPropertyAccessException: lateinit property adapter has not been initialized at com.fsck.k9.ui.messagelist.BaseMessageListFragment.updateFooterText(BaseMessageListFragment.kt:1441) at com.fsck.k9.ui.messagelist.BaseMessageListFragment.updateFooterText(BaseMessageListFragment.kt:1437) at com.fsck.k9.ui.messagelist.BaseMessageListFragment.folderLoading(BaseMessageListFragment.kt:763) at com.fsck.k9.ui.messagelist.MessageListHandler.handleMessage(MessageListHandler.java:88) at android.os.Handler.dispatchMessage(Handler.java:132) at android.os.Looper.dispatchMessage(Looper.java:333) at android.os.Looper.loopOnce(Looper.java:263) at android.os.Looper.loop(Looper.java:367) at android.app.ActivityThread.main(ActivityThread.java:9287) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:566) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929) ```
|
BTW, whey not mark |
|
|
Yeah, this is another example, so many call sites of |
|
Hello! Thank you for raising this issue. We're aware of the crash you're experiencing, and it has been addressed in the PR #10469. As we gradually update the MessageList state, some crashes like this are expected to occur on the main branch. If this is causing problems for your development, please consider disabling the feature flag The fix I implemented will delay the call of To answer your question:
There are a few reasons for this:
Thanks for your understanding! |
|
Thanks for the explanation! |
This exception happens when opening the app when it's recycled (I guess).