From 772dcbba851d313bc36f2bc51143044255139d4c Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 30 Apr 2014 21:38:59 -0700 Subject: Fix crash --- src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3