java.lang.NullPointerException: Attempt to get length of null array

GitHub | cketti | 2 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Crash: NPE in LocalStore.getRawAttachmentInputStream()

    GitHub | 2 months ago | cketti
    java.lang.NullPointerException: Attempt to get length of null array
  2. 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
  3. 0

    Crash: OOM during migration

    GitHub | 2 months ago | cketti
    java.lang.OutOfMemoryError: Failed to allocate a 2060 byte allocation with 1974 free bytes and 1974B until OOM
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 1583#249382067

    GitHub | 5 months ago | philipwhiuk
    java.lang.RuntimeException: An error occurred while executing doInBackground()

  1. DoktorDoener666 9 times, last 3 months ago
  2. Nikolay Rybak 2 times, last 4 months ago
  3. tfr 1 times, last 8 months ago
  4. qavid 3 times, last 9 months ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    Attempt to get length of null array

    at java.io.ByteArrayInputStream.<init>()
  2. Java RT
    ByteArrayInputStream.<init>
    1. java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:60)
    1 frame
  3. com.fsck.k9
    LocalStore$15.writeTo
    1. com.fsck.k9.mailstore.LocalStore.getRawAttachmentInputStream(LocalStore.java:873)
    2. com.fsck.k9.mailstore.LocalStore.writeSimplePartToOutputStream(LocalStore.java:857)
    3. com.fsck.k9.mailstore.LocalStore.writeCursorPartsToOutputStream(LocalStore.java:746)
    4. com.fsck.k9.mailstore.LocalStore.access$300(LocalStore.java:78)
    5. com.fsck.k9.mailstore.LocalStore$16.doDbWork(LocalStore.java:722)
    6. com.fsck.k9.mailstore.LocalStore$16.doDbWork(LocalStore.java:714)
    7. com.fsck.k9.mailstore.LockableDatabase.execute(LockableDatabase.java:275)
    8. com.fsck.k9.mailstore.LocalStore.writeAttachmentDataToOutputStream(LocalStore.java:714)
    9. com.fsck.k9.mailstore.LocalStore.access$100(LocalStore.java:78)
    10. com.fsck.k9.mailstore.LocalStore$15.writeTo(LocalStore.java:706)
    10 frames
  4. org.openintents.openpgp
    ParcelFileDescriptorUtil$DataSourceTransferThread.run
    1. org.openintents.openpgp.util.ParcelFileDescriptorUtil$DataSourceTransferThread.run(ParcelFileDescriptorUtil.java:118)
    1 frame