From e7f8cea262a0419b2b1653c1ffa536d34c2083ea Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 24 Oct 2013 17:04:15 -0700 Subject: More fun with spots that shouldn't be possible to reach --- src/github/daneren2005/dsub/fragments/SubsonicFragment.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java index e9f246fa..048d75e8 100644 --- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java +++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java @@ -966,6 +966,8 @@ public class SubsonicFragment extends Fragment { public void deleteRecursively(Artist artist) { File dir = FileUtil.getArtistDirectory(context, artist); + if(dir == null) return; + Util.recursiveDelete(dir); if(Util.isOffline(context)) { refresh(); @@ -974,6 +976,8 @@ public class SubsonicFragment extends Fragment { public void deleteRecursively(MusicDirectory.Entry album) { File dir = FileUtil.getAlbumDirectory(context, album); + if(dir == null) return; + Util.recursiveDelete(dir); if(Util.isOffline(context)) { refresh(); -- cgit v1.2.3