diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-04-30 21:38:59 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-04-30 21:38:59 -0700 |
commit | 772dcbba851d313bc36f2bc51143044255139d4c (patch) | |
tree | f33a5494ba885bc443d83a44c9b75afd32abf4aa | |
parent | af7238785da4e61dca1bc3abd1a2357726e29f38 (diff) | |
download | dsub-772dcbba851d313bc36f2bc51143044255139d4c.tar.gz dsub-772dcbba851d313bc36f2bc51143044255139d4c.tar.bz2 dsub-772dcbba851d313bc36f2bc51143044255139d4c.zip |
Fix crash
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java index bcb93115..93886b96 100644 --- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java +++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java @@ -639,7 +639,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter if (songCount > 0 && !"root".equals(id)) {
if(showHeader) {
View header = createHeader(entries);
- if(header != null) {
+ if(header != null && entryList != null) {
entryList.removeHeaderView(albumList);
entryList.addHeaderView(header, null, false);
entryList.addHeaderView(albumList);
|