NullpointerException. mRecyclePolicy is null #40

Open
dit-j opened this Issue Dec 26, 2013 · 2 comments

Projects

None yet

3 participants

@dit-j
dit-j 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

+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

+1 too. Strange behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment