Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled exception: NullPointerException/NegativeArrayException in CacheDispatcher #72

Closed
hanspeteroliver opened this issue Aug 13, 2017 · 3 comments

Comments

@hanspeteroliver
Copy link

java.lang.NegativeArraySizeException: -557
at com.android.volley.toolbox.DiskBasedCache.streamToBytes(DiskBasedCache.java:323)
at com.android.volley.toolbox.DiskBasedCache.get(DiskBasedCache.java:119)
at com.android.volley.CacheDispatcher.run(CacheDispatcher.java:100)

This is my stacktrace. I think it's caused by unhandled NullPointer in the CacheDispatcher. My app crashs with this stacktrace everytime when the OS cleans up the Volley cache.

@joebowbeer
Copy link
Contributor

This is a dup of Issue #12 ? (The fix for which is available in a snapshot.)

Can you explain the NullPointerException hypothesis?

@hanspeteroliver
Copy link
Author

hanspeteroliver commented Aug 14, 2017 via email

@jpd236
Copy link
Collaborator

jpd236 commented Aug 14, 2017

The bug was only fixed recently in the official repository. It has not made it to a public release yet but should soon.

In the mean time you can use a SNAPSHOT build of Volley if you'd like to pick up the latest bug fixes prior to the next release. There are some instructions here: #11 (comment)

@jpd236 jpd236 closed this as completed Aug 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants