aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
index 84233c27..44dc4325 100644
--- a/subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
+++ b/subsonic-android/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
@@ -391,7 +391,7 @@ public class SubsonicFragment extends SherlockFragment {
Version version = Util.getServerRestVersion(context);
Version genreVersion = new Version("1.9.0");
boolean _useCombo = false;
- if(version.compareTo(genreVersion) >= 0) {
+ if(version != null && version.compareTo(genreVersion) >= 0) {
genreBox.setVisibility(View.GONE);
genreCombo.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {