aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-10-30 13:54:42 -0700
committerScott Jackson <daneren2005@gmail.com>2014-10-30 13:54:42 -0700
commit741ea73b0e45bd983afd1f411559755ee59fe8b0 (patch)
tree296808e53df816458110f6a9934c57bf6732a630 /src
parentcd042d3eb9470f13ef8f89fecc27e655d91067f8 (diff)
downloaddsub-741ea73b0e45bd983afd1f411559755ee59fe8b0.tar.gz
dsub-741ea73b0e45bd983afd1f411559755ee59fe8b0.tar.bz2
dsub-741ea73b0e45bd983afd1f411559755ee59fe8b0.zip
Fix NPE when browsing any artists
Diffstat (limited to 'src')
-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 54d88746..677664b5 100644
--- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
@@ -483,7 +483,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter
// Update the fragment pointers so other stuff works correctly
SelectDirectoryFragment.this.id = dir.getId();
SelectDirectoryFragment.this.name = dir.getName();
- } else if(id != null && directory == null) {
+ } else if(id != null && directory == null && dir.getParent() != null) {
// View Album, try to lookup parent to get a complete entry to use for starring
MusicDirectory parentDir = getMusicDirectory(dir.getParent(), name, refresh, service, this);
for(Entry child: parentDir.getChildren()) {