diff --git a/catch/src/main/java/uk/ac/masts/sifids/activities/SettingsActivity.java b/catch/src/main/java/uk/ac/masts/sifids/activities/SettingsActivity.java index 68d4dca..f70d73e 100644 --- a/catch/src/main/java/uk/ac/masts/sifids/activities/SettingsActivity.java +++ b/catch/src/main/java/uk/ac/masts/sifids/activities/SettingsActivity.java @@ -462,7 +462,10 @@ public void submitConsentDetails(View view) { } try { consentJson.put(prefKey, pref.toString()); - } catch (JSONException jse) {} + } catch (JSONException jse) { + goodToGo = false; + break; + } } if (goodToGo) { final String url = getBaseContext().getString(R.string.post_request_url);