aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-05-04 09:23:33 -0700
committerScott Jackson <daneren2005@gmail.com>2016-05-04 09:23:33 -0700
commit1c972ba10dd7dd1a934f1895029d1529af67f93d (patch)
tree2ab3bc25e69a572edec3040f8449fa22bba982b5 /app/src/main/java
parent78356fb661df9ca8911542cec0c402504bed445a (diff)
downloaddsub-1c972ba10dd7dd1a934f1895029d1529af67f93d.tar.gz
dsub-1c972ba10dd7dd1a934f1895029d1529af67f93d.tar.bz2
dsub-1c972ba10dd7dd1a934f1895029d1529af67f93d.zip
Fix random crash
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/DownloadService.java5
1 files changed, 4 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 01007b68..ff260931 100644
--- a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
+++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
@@ -862,7 +862,10 @@ public class DownloadService extends Service {
if (currentPlaying != null && currentPlaying.getSong() != null) {
Util.broadcastNewTrackInfo(this, currentPlaying.getSong());
- mRemoteControl.updateMetadata(this, currentPlaying.getSong());
+
+ if(mRemoteControl != null) {
+ mRemoteControl.updateMetadata(this, currentPlaying.getSong());
+ }
} else {
Util.broadcastNewTrackInfo(this, null);
Notifications.hidePlayingNotification(this, this, handler);