aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-10-28 16:16:35 -0700
committerScott Jackson <daneren2005@gmail.com>2012-10-28 16:16:35 -0700
commited0ce0c3e085299d5d15aa03d2d9f651d8335af4 (patch)
tree7c65483e57e535ff85102ce16ae12fe6a23bb3e0 /subsonic-android/src/github/daneren2005
parent5856d765d8216a6eceb613ae0d70fc3e9273b193 (diff)
downloaddsub-ed0ce0c3e085299d5d15aa03d2d9f651d8335af4.tar.gz
dsub-ed0ce0c3e085299d5d15aa03d2d9f651d8335af4.tar.bz2
dsub-ed0ce0c3e085299d5d15aa03d2d9f651d8335af4.zip
Added another check in setImage
Diffstat (limited to 'subsonic-android/src/github/daneren2005')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java2
1 files changed, 1 insertions, 1 deletions
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(