java.lang.NullPointerException

Attempt to get length of null array

Samebug tips0

There are no available Samebug tips.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web100

  • via GitHub by moxie0
    ,
  • via GitHub by moxie0
    ,
  • Stack trace

    • java.lang.NullPointerException: Attempt to get length of null array at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:60) at com.fsck.k9.mailstore.LocalStore.getRawAttachmentInputStream(LocalStore.java:873) at com.fsck.k9.mailstore.LocalStore.writeSimplePartToOutputStream(LocalStore.java:857) at com.fsck.k9.mailstore.LocalStore.writeCursorPartsToOutputStream(LocalStore.java:746) at com.fsck.k9.mailstore.LocalStore.access$300(LocalStore.java:78) at com.fsck.k9.mailstore.LocalStore$16.doDbWork(LocalStore.java:722) at com.fsck.k9.mailstore.LocalStore$16.doDbWork(LocalStore.java:714) at com.fsck.k9.mailstore.LockableDatabase.execute(LockableDatabase.java:275) at com.fsck.k9.mailstore.LocalStore.writeAttachmentDataToOutputStream(LocalStore.java:714) at com.fsck.k9.mailstore.LocalStore.access$100(LocalStore.java:78) at com.fsck.k9.mailstore.LocalStore$15.writeTo(LocalStore.java:706) at org.openintents.openpgp.util.ParcelFileDescriptorUtil$DataSourceTransferThread.run(ParcelFileDescriptorUtil.java:118)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    DoktorDoener666DoktorDoener666
    9 times, last one,
    Nikolay RybakNikolay Rybak
    2 times, last one,
    tfrtfr
    1 times, last one,
    qavidqavid
    3 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    2 more bugmates