aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-01-04 22:30:20 -0800
committerScott Jackson <daneren2005@gmail.com>2016-01-04 22:30:20 -0800
commit16e81b24b0e502ee8a57b347e464cbf7e59855c4 (patch)
tree437ab03831dd2d6baaaca50efad12d23f363bd37 /app/src/main/java/github/daneren2005
parent766cf1eadfcaf623daec536c53529b9d6c6a6227 (diff)
downloaddsub-16e81b24b0e502ee8a57b347e464cbf7e59855c4.tar.gz
dsub-16e81b24b0e502ee8a57b347e464cbf7e59855c4.tar.bz2
dsub-16e81b24b0e502ee8a57b347e464cbf7e59855c4.zip
Fix error if no currentPlaying on start
Diffstat (limited to 'app/src/main/java/github/daneren2005')
-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 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());
+ }
}
});
}