diff options
author | Scott Jackson <daneren2005@gmail.com> | 2016-05-04 09:23:33 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2016-05-04 09:23:33 -0700 |
commit | 1c972ba10dd7dd1a934f1895029d1529af67f93d (patch) | |
tree | 2ab3bc25e69a572edec3040f8449fa22bba982b5 /app/src | |
parent | 78356fb661df9ca8911542cec0c402504bed445a (diff) | |
download | dsub-1c972ba10dd7dd1a934f1895029d1529af67f93d.tar.gz dsub-1c972ba10dd7dd1a934f1895029d1529af67f93d.tar.bz2 dsub-1c972ba10dd7dd1a934f1895029d1529af67f93d.zip |
Fix random crash
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/service/DownloadService.java | 5 |
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); |