diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-02-15 15:40:13 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-02-15 15:40:13 -0800 |
commit | aea20bd0e93e8d1a38c74682967b51ba67a1ee81 (patch) | |
tree | a4efc36289cfac38afb241917f0ef8ce5ef5bf79 | |
parent | 9ecd346b924dea54fe48c7b7686d833cc2ede09f (diff) | |
download | dsub-aea20bd0e93e8d1a38c74682967b51ba67a1ee81.tar.gz dsub-aea20bd0e93e8d1a38c74682967b51ba67a1ee81.tar.bz2 dsub-aea20bd0e93e8d1a38c74682967b51ba67a1ee81.zip |
Fix crash when exiting with Jukebox mode on
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index 7fec5707..6ea98302 100644 --- a/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -1136,7 +1136,9 @@ public class DownloadServiceImpl extends Service implements DownloadService { @Override public void setRemoteEnabled(RemoteControlState newState) { - setRemoteEnabled(newState, null); + if(instance != null) { + setRemoteEnabled(newState, null); + } } public void setRemoteEnabled(RemoteControlState newState, Object ref) { setRemoteState(newState, ref); |