aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-04-30 21:38:59 -0700
committerScott Jackson <daneren2005@gmail.com>2014-04-30 21:38:59 -0700
commit772dcbba851d313bc36f2bc51143044255139d4c (patch)
treef33a5494ba885bc443d83a44c9b75afd32abf4aa
parentaf7238785da4e61dca1bc3abd1a2357726e29f38 (diff)
downloaddsub-772dcbba851d313bc36f2bc51143044255139d4c.tar.gz
dsub-772dcbba851d313bc36f2bc51143044255139d4c.tar.bz2
dsub-772dcbba851d313bc36f2bc51143044255139d4c.zip
Fix crash
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java2
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);