summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-06-10 18:18:07 +0200
committerParménides GV <parmegv@sdf.org>2013-06-10 18:18:07 +0200
commit5d14f128f8da5384e6834008326e435524c8fe33 (patch)
tree039d56c592020c1bea14cdfa39e4ff3dcbab36d2 /src
parent57ac2c271561fe9f1255109733f5daae06e9234c (diff)
NullPointer solved.
ConfigHelper refactored methods returning nulls instead of empty objects broke LeapHttpClient getInstance implementation, because it checked the emptiness of the object and not if it was null.
Diffstat (limited to 'src')
-rw-r--r--src/se/leap/leapclient/LeapHttpClient.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/se/leap/leapclient/LeapHttpClient.java b/src/se/leap/leapclient/LeapHttpClient.java
index 646f80f..3eeebe9 100644
--- a/src/se/leap/leapclient/LeapHttpClient.java
+++ b/src/se/leap/leapclient/LeapHttpClient.java
@@ -20,7 +20,7 @@ public class LeapHttpClient extends DefaultHttpClient {
if(client == null) {
client = new LeapHttpClient(context);
String cert_string = ConfigHelper.getStringFromSharedPref(ConfigHelper.MAIN_CERT_KEY);
- if(!cert_string.isEmpty()) {
+ if(cert_string != null) {
ConfigHelper.addTrustedCertificate("recovered_certificate", cert_string);
}
}