From 4614bb2d9151fef00d43ce9661dd4d48c4973f7c Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Tue, 14 May 2013 08:51:41 -0600 Subject: Added safety check that really shouldn't be needed --- .../src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subsonic-android/src/github/daneren2005') diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index dc1e2f0f..bae4310d 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -328,7 +328,7 @@ public class DownloadServiceImpl extends Service implements DownloadService { download(songs, false, false, false, false); if (currentPlayingIndex != -1) { play(currentPlayingIndex, autoPlayStart); - if (currentPlaying.isCompleteFileAvailable()) { + if (currentPlaying != null && currentPlaying.isCompleteFileAvailable()) { doPlay(currentPlaying, currentPlayingPosition, autoPlayStart); } autoPlayStart = false; -- cgit v1.2.3