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


Solutions on the web

Solution icon of github
Attempt to get length of null array

Solution icon of github
Attempt to get length of null array

Solution icon of stackoverflow
Attempt to get length of null array

Solution icon of github
via GitHub by moxie0
, 1 year ago
Attempt to get length of null array

Solution icon of stackoverflow
via Stack Overflow by nick
, 1 year ago
Attempt to get length of null array

Solution icon of web
Attempt to get length of null array

Solution icon of github
via GitHub by moxie0
, 1 year ago
Attempt to get length of null array

Solution icon of github
via GitHub by Sami32
, 9 months ago
null

Solution icon of github
via GitHub by stantonk
, 9 months ago
null

Solution icon of github
null

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

9 times, 11 months ago
2 times, 11 months ago
Once, 1 year ago
3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
2 more bugmates