From ed0ce0c3e085299d5d15aa03d2d9f651d8335af4 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sun, 28 Oct 2012 16:16:35 -0700 Subject: Added another check in setImage --- subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subsonic-android/src') diff --git a/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java b/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java index 6e0db070..79945c95 100644 --- a/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java +++ b/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java @@ -169,7 +169,7 @@ public class ImageLoader implements Runnable { } private void setImage(RemoteControlClient remoteControl, Drawable drawable) { - if(remoteControl != null) { + if(remoteControl != null && drawable != null) { Bitmap origBitmap = ((BitmapDrawable)drawable).getBitmap(); remoteControl.editMetadata(false) .putBitmap( -- cgit v1.2.3