From fefed981cd39a650bd0de515d5327c4c0fa2715e Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sun, 15 Feb 2015 18:39:20 -0800 Subject: Fix a random crash with casting to ChromeCast --- src/github/daneren2005/dsub/service/DownloadService.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index 473815dc..8c6016ba 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -1941,6 +1941,10 @@ public class DownloadService extends Service { postPlayCleanup(currentPlaying); } public void postPlayCleanup(DownloadFile downloadFile) { + if(downloadFile == null) { + return; + } + // Finished loading, delete when list is cleared if (downloadFile.getSong() instanceof PodcastEpisode) { toDelete.add(downloadFile); -- cgit v1.2.3