java.lang.NullPointerException: Attempt to invoke virtual method 'com.fsck.k9.Account com.fsck.k9.mailstore.LocalMessage.getAccount()' on a null object reference

GitHub | ashimokawa | 4 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    NPE in k9 and empty list when querying messages from 3rd party application (Gadgetbridge)

    GitHub | 4 months ago | ashimokawa
    java.lang.NullPointerException: Attempt to invoke virtual method 'com.fsck.k9.Account com.fsck.k9.mailstore.LocalMessage.getAccount()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'com.fsck.k9.Account com.fsck.k9.mailstore.LocalMessage.getAccount()' on a null object reference

      at com.fsck.k9.provider.MessageProvider$MesssageInfoHolderRetrieverListener.listLocalMessagesAddMessages()
    2. com.fsck.k9
      MessagingController$5.run
      1. com.fsck.k9.provider.MessageProvider$MesssageInfoHolderRetrieverListener.listLocalMessagesAddMessages(MessageProvider.java:939)
      2. com.fsck.k9.controller.MessagingController$6.messageFinished(MessagingController.java:534)
      3. com.fsck.k9.controller.MessagingController$6.messageFinished(MessagingController.java:520)
      4. com.fsck.k9.mailstore.LocalStore$13.doDbWork(LocalStore.java:610)
      5. com.fsck.k9.mailstore.LocalStore$13.doDbWork(LocalStore.java:596)
      6. com.fsck.k9.mailstore.LockableDatabase.execute(LockableDatabase.java:275)
      7. com.fsck.k9.mailstore.LocalStore.getMessages(LocalStore.java:596)
      8. com.fsck.k9.mailstore.LocalStore.searchForMessages(LocalStore.java:583)
      9. com.fsck.k9.controller.MessagingController.searchLocalMessagesSynchronous(MessagingController.java:548)
      10. com.fsck.k9.controller.MessagingController$5.run(MessagingController.java:500)
      10 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
      3. java.lang.Thread.run(Thread.java:818)
      3 frames