diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-04-27 17:38:27 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-04-27 17:38:27 -0700 |
commit | 9ab86aa9de58252f4355df5186c3f4b7f68c5fff (patch) | |
tree | 1ba152460da8c17724ab6e5e37ba74e815bba272 /app/src/main/java | |
parent | cfd014d38cba03ba05f571597b361ab253bff578 (diff) | |
download | dsub-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.java | 2 |
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 { |