From 998ff53d3eababf41785416a017dbee80d76fc68 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Fri, 7 Jun 2013 08:17:36 -0700 Subject: Error checking if version is null or any reason --- .../src/github/daneren2005/dsub/fragments/SubsonicFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subsonic-android/src/github/daneren2005') 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) { -- cgit v1.2.3