New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.fsck.k9.Account.getUuid()' on a null object reference #3538

Closed
tianxiaogu opened this Issue Aug 1, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@tianxiaogu

tianxiaogu commented Aug 1, 2018

Please search to check for an existing issue (including closed issues, for which the fix may not have yet been released) before opening a new issue: https://github.com/k9mail/k-9/issues?q=is%3Aissue

Maybe a duplicate bug of #2756

// java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.fsck.k9.Account.getUuid()' on a null object reference
//  at com.fsck.k9.activity.compose.MessageActions.actionCompose(MessageActions.java:19)
//  at com.fsck.k9.activity.MessageList.onCompose(MessageList.java:1277)
//  at com.fsck.k9.fragment.MessageListFragment.onCompose(MessageListFragment.java:773)
//  at com.fsck.k9.activity.MessageList.onOptionsItemSelected(MessageList.java:812)
//  at android.app.Activity.onMenuItemSelected(Activity.java:2914)
//  at com.android.internal.policy.PhoneWindow.onMenuItemSelected(PhoneWindow.java:1151)
//  at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:761)
//  at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
//  at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:904)
//  at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:894)
//  at android.widget.ActionMenuView.invokeItem(ActionMenuView.java:616)
//  at com.android.internal.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:141)
//  at android.view.View.performClick(View.java:5204)
//  at android.view.View$PerformClick.run(View.java:21153)
//  at android.os.Handler.handleCallback(Handler.java:739)
//  at android.os.Handler.dispatchMessage(Handler.java:95)
//  at android.os.Looper.loop(Looper.java:148)
//  at android.app.ActivityThread.main(ActivityThread.java:5417)
//  at java.lang.reflect.Method.invoke(Native Method)
//  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
//  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Expected behavior

No crash.

Actual behavior

Crash

Steps to reproduce

  1. A clean install
  2. Click Import settings
  3. Click BACK
  4. Click OK to close change log
  5. Click search and type some random keywords
  6. Click compose button in the Search results.

Screenshots are available at http://gutianxiao.com/sata/com.fsck.k9-10/.

Environment

K-9 Mail version:
5.403
Android version:
6.0.1
Account type (IMAP, POP3, WebDAV/Exchange):

mmadisonphillips added a commit to mmadisonphillips/k-9 that referenced this issue Aug 9, 2018

Fix no default account crash on compose
- Fix k9mail#3538
- If there is no account specified AND no default account set, an
  attempt to compose a message will redirect the user to the
  AccountSetupBasics activity.

@cketti cketti closed this in #3548 Aug 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment