From ccfb2eb36ad78339400c8dd3a016b5353a7ab78c Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Fri, 16 May 2014 22:40:34 -0700 Subject: Fix crash off objects being null --- src/github/daneren2005/dsub/fragments/DownloadFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { public List getObjects(MusicService musicService, boolean refresh, ProgressListener listener) throws Exception { DownloadService downloadService = getDownloadService(); if(downloadService == null) { - return null; + return new ArrayList(); } listView.setOnScrollListener(null); -- cgit v1.2.3