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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by cketti
, 11 months ago
via Stack Overflow by Unknown author, 2 years ago
via Stack Overflow by Prashant Patil
, 7 months ago
java.lang.NullPointerException: Attempt to get length of null array
at java.io.ByteArrayInputStream.(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)

Users with the same issue

9 times, 1 year ago
2 times, 1 year ago
Once, 1 year ago
3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.