diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-05-20 21:31:13 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-05-20 21:31:13 -0700 |
commit | 433c7145f48a5b35bb57cf14c310c4989a094098 (patch) | |
tree | 94185232d3ea85a81c5241c028f1dcf9cea0fd60 /src/github | |
parent | 7b1da2e065fc324f4b490fa6e98daf6e591a33d9 (diff) | |
download | dsub-433c7145f48a5b35bb57cf14c310c4989a094098.tar.gz dsub-433c7145f48a5b35bb57cf14c310c4989a094098.tar.bz2 dsub-433c7145f48a5b35bb57cf14c310c4989a094098.zip |
Catch error if remoteControl is somehow null
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadService.java | 4 |
1 files changed, 3 insertions, 1 deletions
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); |