Fixed a null pointer exception in AsyncImageView

pull/14/head
Sam Bosley 11 years ago
parent 76a8444ffe
commit ec1f02e60f

@ -46,8 +46,7 @@ public class AsyncImageView extends greendroid.widget.AsyncImageView {
if (cacheImage != null && cacheURL.equals(url) && !TextUtils.isEmpty(url)) {
setImageBitmap(cacheImage);
return;
}
else if(imageDiskCache != null && imageDiskCache.contains(url)) {
} else if (url != null && imageDiskCache != null && imageDiskCache.contains(url)) {
try {
cacheImage = imageDiskCache.get(url);
setImageBitmap(cacheImage);

Loading…
Cancel
Save