From 232a2b39e7c82df63a8110d8b9fe928cfeb89fa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parm=C3=A9nides=20GV?= Date: Mon, 31 Mar 2014 20:59:09 +0200 Subject: EIP detection returns false if exception happens. hasEIP method didn't return false if JSONException happened, and that occurred when a provider didn't offer EIP (right now, cdev doesn't offer EIP). --- src/se/leap/bitmaskclient/Provider.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/se/leap') diff --git a/src/se/leap/bitmaskclient/Provider.java b/src/se/leap/bitmaskclient/Provider.java index 598999fd..216f4261 100644 --- a/src/se/leap/bitmaskclient/Provider.java +++ b/src/se/leap/bitmaskclient/Provider.java @@ -168,9 +168,11 @@ public final class Provider implements Serializable { return true; } catch (NullPointerException e){ e.printStackTrace(); + return false; } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); + return false; } } return false; -- cgit v1.2.3