diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-04-23 07:30:45 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-04-23 07:30:45 -0700 |
commit | 7aa5e9b72c414a627cd3cfab5d9a7ad9658dfd81 (patch) | |
tree | fca9be9d5d42405fac3f06c0b99e11418975a2e7 | |
parent | 1395bea48fa3c8837c5a2b8933682cc9df32f889 (diff) | |
download | dsub-7aa5e9b72c414a627cd3cfab5d9a7ad9658dfd81.tar.gz dsub-7aa5e9b72c414a627cd3cfab5d9a7ad9658dfd81.tar.bz2 dsub-7aa5e9b72c414a627cd3cfab5d9a7ad9658dfd81.zip |
Added in safety check that start can't be -1
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index 6d134314..b78e25d7 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -1289,6 +1289,9 @@ public class DownloadServiceImpl extends Service implements DownloadService { if(n != 0) { int start = currentPlaying == null ? 0 : getCurrentPlayingIndex(); + if(start == -1) { + start = 0; + } int i = start; do { DownloadFile downloadFile = downloadList.get(i); |