-
Notifications
You must be signed in to change notification settings - Fork 338
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
Crash when caching is enabled #140
Comments
Also have |
Could it be because of the old disklrucache library version? |
Sorry for the delay - I didn't notice this thread until reviewing old issues just now. Actually, the new version of DiskLruCache isn't compatible - this one should work: https://oss.sonatype.org/content/repositories/releases/com/jakewharton/disklrucache/1.3.1/disklrucache-1.3.1.jar Post back if that doesn't fix it. |
No worries, I am actually using that version. (compile 'com.jakewharton:disklrucache:1.3.1') |
Ah, yep, you mentioned the version right up front. So my next best guess would be here: https://github.com/moagrius/TileView/blob/master/src/com/qozix/tileview/tiles/TileCache.java#L61 Maybe the File pointer is null. Try adding a null test before the try/catch in the source. If that works you can do a fork and PR and I'll merge, otherwise I'll do it when I get some time. Thanks for posting. |
This is corrected in the latest commit (really just needed be less strict on what exceptions were caught). Not sure why this started showing up out of the blue, but I see it as well. Note that I have not released a new .jar, you'll need to grab the source, nor have I updated the docs (just moved to AS from Eclipse, which had those tasks pretty well baked-in, still getting used to AS). |
I get random crashes when using setCacheEnabled(true).
NullPointerException:
Anybody else experiencing this?
The text was updated successfully, but these errors were encountered: