diff options
author | Scott Jackson <daneren2005@gmail.com> | 2016-01-04 22:30:20 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2016-01-04 22:30:20 -0800 |
commit | 16e81b24b0e502ee8a57b347e464cbf7e59855c4 (patch) | |
tree | 437ab03831dd2d6baaaca50efad12d23f363bd37 /app/src/main/java | |
parent | 766cf1eadfcaf623daec536c53529b9d6c6a6227 (diff) | |
download | dsub-16e81b24b0e502ee8a57b347e464cbf7e59855c4.tar.gz dsub-16e81b24b0e502ee8a57b347e464cbf7e59855c4.tar.bz2 dsub-16e81b24b0e502ee8a57b347e464cbf7e59855c4.zip |
Fix error if no currentPlaying on start
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/service/DownloadService.java | 4 |
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 72e6064b..d48d7540 100644 --- a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java +++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java @@ -2778,7 +2778,9 @@ public class DownloadService extends Service { handler.post(new Runnable() { @Override public void run() { - mRemoteControl.metadataChanged(currentPlaying.getSong()); + if(currentPlaying != null) { + mRemoteControl.metadataChanged(currentPlaying.getSong()); + } } }); } |