diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-05-16 22:40:34 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-05-16 22:40:34 -0700 |
commit | ccfb2eb36ad78339400c8dd3a016b5353a7ab78c (patch) | |
tree | b09ae244efa2723a1cdac48a15bad43fb922600d | |
parent | 7ba8e8817b667b30d18df5ca8e85527b765ccc0d (diff) | |
download | dsub-ccfb2eb36ad78339400c8dd3a016b5353a7ab78c.tar.gz dsub-ccfb2eb36ad78339400c8dd3a016b5353a7ab78c.tar.bz2 dsub-ccfb2eb36ad78339400c8dd3a016b5353a7ab78c.zip |
Fix crash off objects being null
-rw-r--r-- | src/github/daneren2005/dsub/fragments/DownloadFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/DownloadFragment.java b/src/github/daneren2005/dsub/fragments/DownloadFragment.java index 5e93c7a7..9f592b6e 100644 --- a/src/github/daneren2005/dsub/fragments/DownloadFragment.java +++ b/src/github/daneren2005/dsub/fragments/DownloadFragment.java @@ -91,7 +91,7 @@ public class DownloadFragment extends SelectListFragment<DownloadFile> { public List<DownloadFile> getObjects(MusicService musicService, boolean refresh, ProgressListener listener) throws Exception {
DownloadService downloadService = getDownloadService();
if(downloadService == null) {
- return null;
+ return new ArrayList<DownloadFile>();
}
listView.setOnScrollListener(null);
|