diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-08-21 15:58:23 -0700 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-08-21 15:58:23 -0700 |
commit | 4e17fc7f4e16626a89634cff580e7274661e25a2 (patch) | |
tree | c0d95817ac0d67a97184de344b0cf96207ca22c7 /src | |
parent | bcdffe228d85226febed393ce8d5d4e08ba53ca8 (diff) | |
download | dsub-4e17fc7f4e16626a89634cff580e7274661e25a2.tar.gz dsub-4e17fc7f4e16626a89634cff580e7274661e25a2.tar.bz2 dsub-4e17fc7f4e16626a89634cff580e7274661e25a2.zip |
Added check if version string is "", no idea how to reproduce this
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/util/Util.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/util/Util.java b/src/github/daneren2005/dsub/util/Util.java index e27be86e..de7495c8 100644 --- a/src/github/daneren2005/dsub/util/Util.java +++ b/src/github/daneren2005/dsub/util/Util.java @@ -250,7 +250,7 @@ public final class Util { if(version == null) { SharedPreferences prefs = getPreferences(context); String versionString = prefs.getString(Constants.PREFERENCES_KEY_SERVER_VERSION + instance, null); - if(versionString != null) { + if(versionString != null && versionString != "") { version = new Version(versionString); SERVER_REST_VERSIONS.put(instance, version); } |