aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-10-24 17:04:15 -0700
committerScott Jackson <daneren2005@gmail.com>2013-10-24 17:04:15 -0700
commite7f8cea262a0419b2b1653c1ffa536d34c2083ea (patch)
tree3c3a907ae8b90103dae6836e5691da6a9a5945eb
parent9cc335cb81ce7845e91d87d935935094f96c422a (diff)
downloaddsub-e7f8cea262a0419b2b1653c1ffa536d34c2083ea.tar.gz
dsub-e7f8cea262a0419b2b1653c1ffa536d34c2083ea.tar.bz2
dsub-e7f8cea262a0419b2b1653c1ffa536d34c2083ea.zip
More fun with spots that shouldn't be possible to reach
-rw-r--r--src/github/daneren2005/dsub/fragments/SubsonicFragment.java4
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();