aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-05-16 22:40:34 -0700
committerScott Jackson <daneren2005@gmail.com>2014-05-16 22:40:34 -0700
commitccfb2eb36ad78339400c8dd3a016b5353a7ab78c (patch)
treeb09ae244efa2723a1cdac48a15bad43fb922600d
parent7ba8e8817b667b30d18df5ca8e85527b765ccc0d (diff)
downloaddsub-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.java2
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);