aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-05-20 21:31:13 -0700
committerScott Jackson <daneren2005@gmail.com>2014-05-20 21:31:13 -0700
commit433c7145f48a5b35bb57cf14c310c4989a094098 (patch)
tree94185232d3ea85a81c5241c028f1dcf9cea0fd60 /src/github/daneren2005
parent7b1da2e065fc324f4b490fa6e98daf6e591a33d9 (diff)
downloaddsub-433c7145f48a5b35bb57cf14c310c4989a094098.tar.gz
dsub-433c7145f48a5b35bb57cf14c310c4989a094098.tar.bz2
dsub-433c7145f48a5b35bb57cf14c310c4989a094098.zip
Catch error if remoteControl is somehow null
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java4
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);