aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-10-16 13:36:14 -0700
committerdaneren2005 <daneren2005@gmail.com>2013-10-16 13:36:14 -0700
commit4810c17db64082a078739d8201cc5f87faac0c27 (patch)
tree0379b4bf9c1f398d9ae0094aa406570f0bc0600f /src/github/daneren2005
parent7b1f3c6de11ac000a37d029c8c29086eff08fe1b (diff)
downloaddsub-4810c17db64082a078739d8201cc5f87faac0c27.tar.gz
dsub-4810c17db64082a078739d8201cc5f87faac0c27.tar.bz2
dsub-4810c17db64082a078739d8201cc5f87faac0c27.zip
Fix for downloadFile == null somehow
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/util/Util.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/util/Util.java b/src/github/daneren2005/dsub/util/Util.java
index f7dbb8bd..606b4b0d 100644
--- a/src/github/daneren2005/dsub/util/Util.java
+++ b/src/github/daneren2005/dsub/util/Util.java
@@ -939,7 +939,7 @@ public final class Util {
builder = new NotificationCompat.Builder(context)
.setSmallIcon(R.drawable.stat_notify_download)
.setContentTitle("Downloading " + size + " songs")
- .setContentText("Current: " + file.getSong().getTitle())
+ .setContentText("Current: " + (file != null ? file.getSong().getTitle() : "none"))
.setProgress(10, 5, true)
.setOngoing(true);