From 9ab86aa9de58252f4355df5186c3f4b7f68c5fff Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 27 Apr 2015 17:38:27 -0700 Subject: Fix random crash --- app/src/main/java/github/daneren2005/dsub/service/DownloadService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java') 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 { -- cgit v1.2.3