aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-04-01 17:46:55 -0700
committerScott Jackson <daneren2005@gmail.com>2016-04-01 17:46:55 -0700
commit3b3a0eeaa6463c84e4cafb9d498e43ef9a5c3cc9 (patch)
treee0bff08d4e4b213c5e2a2fd7676d6b230c48816a /app
parent8006545a86a0158ff9ede9c8cf7b547ab2d1686a (diff)
downloaddsub-3b3a0eeaa6463c84e4cafb9d498e43ef9a5c3cc9.tar.gz
dsub-3b3a0eeaa6463c84e4cafb9d498e43ef9a5c3cc9.tar.bz2
dsub-3b3a0eeaa6463c84e4cafb9d498e43ef9a5c3cc9.zip
Fix misc crash
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/DownloadService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
index 10ef0e0d..2d46c1d4 100644
--- a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
+++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
@@ -2744,7 +2744,9 @@ public class DownloadService extends Service {
handler.post(new Runnable() {
@Override
public void run() {
- mRemoteControl.setPlaybackState(playerState.getRemoteControlClientPlayState());
+ if(mRemoteControl != null) {
+ mRemoteControl.setPlaybackState(playerState.getRemoteControlClientPlayState());
+ }
}
});
}