aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-04-27 17:38:27 -0700
committerScott Jackson <daneren2005@gmail.com>2015-04-27 17:38:27 -0700
commit9ab86aa9de58252f4355df5186c3f4b7f68c5fff (patch)
tree1ba152460da8c17724ab6e5e37ba74e815bba272 /app/src/main/java
parentcfd014d38cba03ba05f571597b361ab253bff578 (diff)
downloaddsub-9ab86aa9de58252f4355df5186c3f4b7f68c5fff.tar.gz
dsub-9ab86aa9de58252f4355df5186c3f4b7f68c5fff.tar.bz2
dsub-9ab86aa9de58252f4355df5186c3f4b7f68c5fff.zip
Fix random crash
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/DownloadService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
index 3f1c022c..c1f8870e 100644
--- a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
+++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
@@ -756,7 +756,7 @@ public class DownloadService extends Service {
currentPlayingIndex = downloadList.indexOf(currentPlaying);
}
- if (currentPlaying != null) {
+ if (currentPlaying != null && currentPlaying.getSong() != null) {
Util.broadcastNewTrackInfo(this, currentPlaying.getSong());
mRemoteControl.updateMetadata(this, currentPlaying.getSong());
} else {