aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/gcvote
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2013-09-12 10:31:33 +0200
committerSamuel Tardieu <sam@rfc1149.net>2013-09-12 10:31:33 +0200
commit4be2e8fee71f4b1e28883d4945ffcc37465206f5 (patch)
treeaa30a7e95898bf175b9e3801db83887bed39bc6c /main/src/cgeo/geocaching/gcvote
parent615e146283ca1de51c5c4368cb52d937b4a1c8a5 (diff)
downloadcgeo-4be2e8fee71f4b1e28883d4945ffcc37465206f5.zip
cgeo-4be2e8fee71f4b1e28883d4945ffcc37465206f5.tar.gz
cgeo-4be2e8fee71f4b1e28883d4945ffcc37465206f5.tar.bz2
fix: null warnings and errors
Diffstat (limited to 'main/src/cgeo/geocaching/gcvote')
-rw-r--r--main/src/cgeo/geocaching/gcvote/GCVote.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/gcvote/GCVote.java b/main/src/cgeo/geocaching/gcvote/GCVote.java
index 3f7d33d..f20a6d4 100644
--- a/main/src/cgeo/geocaching/gcvote/GCVote.java
+++ b/main/src/cgeo/geocaching/gcvote/GCVote.java
@@ -216,7 +216,7 @@ public final class GCVote {
final String result = Network.getResponseData(Network.getRequest("http://gcvote.com/setVote.php", params));
- return result.trim().equalsIgnoreCase("ok");
+ return result != null && result.trim().equalsIgnoreCase("ok");
}
public static void loadRatings(final ArrayList<Geocache> caches) {