From aea20bd0e93e8d1a38c74682967b51ba67a1ee81 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sat, 15 Feb 2014 15:40:13 -0800 Subject: Fix crash when exiting with Jukebox mode on --- src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/github/daneren2005') 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); -- cgit v1.2.3