From 433c7145f48a5b35bb57cf14c310c4989a094098 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 20 May 2014 21:31:13 -0700 Subject: Catch error if remoteControl is somehow null --- src/github/daneren2005/dsub/service/DownloadService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/github') diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index 9aba5201..cebc36e0 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -1051,7 +1051,9 @@ public class DownloadService extends Service { } else if(hide) { Util.hidePlayingNotification(this, this, handler); } - mRemoteControl.setPlaybackState(playerState.getRemoteControlClientPlayState()); + if(mRemoteControl != null) { + mRemoteControl.setPlaybackState(playerState.getRemoteControlClientPlayState()); + } if (playerState == STARTED) { scrobbler.scrobble(this, currentPlaying, false); -- cgit v1.2.3