aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-12-27 12:13:48 -0800
committerScott Jackson <daneren2005@gmail.com>2014-12-27 12:13:48 -0800
commit39613268ac58647bd7b1fd0cfac1e592ce99c67f (patch)
treec656a66b5bbd7a48b9b8842626d5d9ce40dc79e3 /src/github
parent449dcead72523a173bc0d17d1ed90865711b534c (diff)
downloaddsub-39613268ac58647bd7b1fd0cfac1e592ce99c67f.tar.gz
dsub-39613268ac58647bd7b1fd0cfac1e592ce99c67f.tar.bz2
dsub-39613268ac58647bd7b1fd0cfac1e592ce99c67f.zip
Fix error when trying to query seekable status with no current song
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java
index aa575145..df780df5 100644
--- a/src/github/daneren2005/dsub/service/DownloadService.java
+++ b/src/github/daneren2005/dsub/service/DownloadService.java
@@ -1308,7 +1308,7 @@ public class DownloadService extends Service {
public boolean isSeekable() {
if(remoteState == LOCAL) {
- return currentPlaying.isWorkDone() && playerState != PREPARING;
+ return currentPlaying != null && currentPlaying.isWorkDone() && playerState != PREPARING;
} else if(remoteController != null) {
return remoteController.isSeekable();
} else {