Skip to content

Commit

Permalink
Avoid submission if JSONException
Browse files Browse the repository at this point in the history
  • Loading branch information
pgmccann committed Jul 3, 2018
1 parent dd17dc5 commit 7bf14f5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7bf14f5

Please sign in to comment.