aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-05-03 15:49:58 -0700
committerScott Jackson <daneren2005@gmail.com>2014-05-03 15:49:58 -0700
commit8585fde9435145baca2c7e583e050dc0abc85ab3 (patch)
tree2adae9ba3abfbfa82e8ac91c83455f25d4d80a8e
parent0e3f566dbedeb328caebf3a9f8af53ffcfa10b31 (diff)
downloaddsub-8585fde9435145baca2c7e583e050dc0abc85ab3.tar.gz
dsub-8585fde9435145baca2c7e583e050dc0abc85ab3.tar.bz2
dsub-8585fde9435145baca2c7e583e050dc0abc85ab3.zip
Fix crash for "Root" artist
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
index 93886b96..2edb38ac 100644
--- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
@@ -127,6 +127,10 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter
if(entries == null) {
entries = (List<MusicDirectory.Entry>) args.getSerializable(Constants.FRAGMENT_LIST);
albums = (List<MusicDirectory.Entry>) args.getSerializable(Constants.FRAGMENT_LIST2);
+
+ if(albums == null) {
+ albums = new ArrayList<MusicDirectory.Entry>();
+ }
}
}