Android-BitmapCache icon indicating copy to clipboard operation
Android-BitmapCache copied to clipboard

NullpointerException. mRecyclePolicy is null

Open recodyx opened this issue 11 years ago • 2 comments

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?

recodyx avatar Dec 26 '13 17:12 recodyx

+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.

QuadFlask avatar Jan 23 '15 09:01 QuadFlask

+1 too. Strange behavior.

formatBCE avatar May 28 '15 20:05 formatBCE