From 3b3a0eeaa6463c84e4cafb9d498e43ef9a5c3cc9 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Fri, 1 Apr 2016 17:46:55 -0700 Subject: Fix misc crash --- .../main/java/github/daneren2005/dsub/service/DownloadService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app') 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()); + } } }); } -- cgit v1.2.3