aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-03-28 11:08:21 -0700
committerScott Jackson <daneren2005@gmail.com>2015-03-28 11:08:21 -0700
commit60ffea0878eabad526ec844c908a57c7d6e44558 (patch)
treebca1e82871bfac4130ad60ac913a1630d0720a98 /src
parent8a940c3792d9eae3f666f34803abb1113f6db061 (diff)
downloaddsub-60ffea0878eabad526ec844c908a57c7d6e44558.tar.gz
dsub-60ffea0878eabad526ec844c908a57c7d6e44558.tar.bz2
dsub-60ffea0878eabad526ec844c908a57c7d6e44558.zip
Fix crash on failing to load artist image
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/util/ImageLoader.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/util/ImageLoader.java b/src/github/daneren2005/dsub/util/ImageLoader.java
index b4bad6e7..ce2035d4 100644
--- a/src/github/daneren2005/dsub/util/ImageLoader.java
+++ b/src/github/daneren2005/dsub/util/ImageLoader.java
@@ -300,7 +300,7 @@ public class ImageLoader {
textView.setCompoundDrawablesWithIntrinsicBounds(drawable, null, null, null);
} else if (view instanceof ImageView) {
final ImageView imageView = (ImageView) view;
- if (crossfade) {
+ if (crossfade && drawable != null) {
Drawable existingDrawable = imageView.getDrawable();
if (existingDrawable == null) {
Bitmap emptyImage;