diff options
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SubsonicFragment.java | 4 |
1 files changed, 4 insertions, 0 deletions
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();
|