diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-12-27 12:13:48 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-12-27 12:13:48 -0800 |
commit | 39613268ac58647bd7b1fd0cfac1e592ce99c67f (patch) | |
tree | c656a66b5bbd7a48b9b8842626d5d9ce40dc79e3 /src/github | |
parent | 449dcead72523a173bc0d17d1ed90865711b534c (diff) | |
download | dsub-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.java | 2 |
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 { |