aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-06-07 08:17:36 -0700
committerScott Jackson <daneren2005@gmail.com>2013-06-07 08:17:36 -0700
commit998ff53d3eababf41785416a017dbee80d76fc68 (patch)
treea22925ae4dc2054e5e3b82d0173fef2e81d71182
parent70dc1d68f4794b1fadc0e35cbcded35605ddfb04 (diff)
downloaddsub-998ff53d3eababf41785416a017dbee80d76fc68.tar.gz
dsub-998ff53d3eababf41785416a017dbee80d76fc68.tar.bz2
dsub-998ff53d3eababf41785416a017dbee80d76fc68.zip
Error checking if version is null or any reason
-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) {