diff options
author | mucek4 <tomaz@gorenc.org> | 2011-10-13 07:32:33 +0200 |
---|---|---|
committer | mucek4 <tomaz@gorenc.org> | 2011-10-13 07:32:33 +0200 |
commit | 1d37c0c934d0731574982f45b5ae565cd21aafaa (patch) | |
tree | bd9adb39168a2851d75c42138c48d7057dc48b53 /main/src/cgeo/geocaching/cgeoinit.java | |
parent | 6a7d55c54fa5cb40c775fc162df4881f7890ca97 (diff) | |
download | cgeo-1d37c0c934d0731574982f45b5ae565cd21aafaa.zip cgeo-1d37c0c934d0731574982f45b5ae565cd21aafaa.tar.gz cgeo-1d37c0c934d0731574982f45b5ae565cd21aafaa.tar.bz2 |
Response can be null.
Diffstat (limited to 'main/src/cgeo/geocaching/cgeoinit.java')
-rw-r--r-- | main/src/cgeo/geocaching/cgeoinit.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgeoinit.java b/main/src/cgeo/geocaching/cgeoinit.java index 26e02ba..413e291 100644 --- a/main/src/cgeo/geocaching/cgeoinit.java +++ b/main/src/cgeo/geocaching/cgeoinit.java @@ -726,7 +726,7 @@ public class cgeoinit extends AbstractActivity { final Parameters params = new Parameters("name", nam, "code", cod); HttpResponse response = cgBase.request("http://send2.cgeo.org/auth.html", params, true); - if (response.getStatusLine().getStatusCode() == 200) + if (response != null && response.getStatusLine().getStatusCode() == 200) { //response was OK String[] strings = cgBase.getResponseData(response).split(","); |