aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-12-29 11:04:11 -0800
committerScott Jackson <daneren2005@gmail.com>2012-12-29 11:04:11 -0800
commit49d6b9f692c1fca73e635096eba08e00e45417b2 (patch)
tree56eb80de8cb1b33e1523abb1293197b30aae5bde /subsonic-android/src/github
parent9c6f68cfa3eeed68dd9f50048a3c452b4cd83b7f (diff)
downloaddsub-49d6b9f692c1fca73e635096eba08e00e45417b2.tar.gz
dsub-49d6b9f692c1fca73e635096eba08e00e45417b2.tar.bz2
dsub-49d6b9f692c1fca73e635096eba08e00e45417b2.zip
Don't crash when currentDownloading = null
Diffstat (limited to 'subsonic-android/src/github')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
index c44314aa..7f250f2e 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
@@ -202,7 +202,7 @@ public class DownloadServiceImpl extends Service implements DownloadService {
@Override
public void onDestroy() {
super.onDestroy();
- currentPlaying.setPlaying(false);
+ if(currentPlaying != null) currentPlaying.setPlaying(false);
if(sleepTimer != null){
sleepTimer.cancel();
sleepTimer.purge();