diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-05-03 15:49:58 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-05-03 15:49:58 -0700 |
commit | 8585fde9435145baca2c7e583e050dc0abc85ab3 (patch) | |
tree | 2adae9ba3abfbfa82e8ac91c83455f25d4d80a8e | |
parent | 0e3f566dbedeb328caebf3a9f8af53ffcfa10b31 (diff) | |
download | dsub-8585fde9435145baca2c7e583e050dc0abc85ab3.tar.gz dsub-8585fde9435145baca2c7e583e050dc0abc85ab3.tar.bz2 dsub-8585fde9435145baca2c7e583e050dc0abc85ab3.zip |
Fix crash for "Root" artist
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 4 |
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>();
+ }
}
}
|