Skip to content
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.

NullpointerException. mRecyclePolicy is null #40

Open
recodyx opened this issue Dec 26, 2013 · 2 comments
Open

NullpointerException. mRecyclePolicy is null #40

recodyx opened this issue Dec 26, 2013 · 2 comments

Comments

@recodyx
Copy link

recodyx commented Dec 26, 2013

Hi.
Getting NullpointerException if MemoryCache is disabled.

BitmapLruCache.java:560

...
BitmapLruCache.Builder builder = new BitmapLruCache.Builder(App.getContext());
builder.setMemoryCacheEnabled(false);
builder.setDiskCacheEnabled(true).setDiskCacheLocation(cacheLocation);
...

Feature?

@QuadFlask
Copy link

+1
I want yo use only as disk cache too, but got exception.

builder.setMemoryCacheEnabled(true).setMemoryCacheMaxSize(1);

It works well. But this is stupid solution I think.

@formatBCE
Copy link

+1 too. Strange behavior.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants