diff --git a/app/src/extra/java/eu/faircode/email/Send.java b/app/src/extra/java/eu/faircode/email/Send.java index d677b629ac..f0ec5609ef 100644 --- a/app/src/extra/java/eu/faircode/email/Send.java +++ b/app/src/extra/java/eu/faircode/email/Send.java @@ -222,8 +222,8 @@ public class Send { JSONObject jconfirm = new JSONObject(queue.remove(0)); Log.i("Send confirm=" + jconfirm); - if (!jconfirm.getBoolean("ok")) - throw new FileNotFoundException(); + if (!jconfirm.optBoolean("ok")) + throw new FileNotFoundException(jconfirm.toString()); } finally { ws.disconnect(); }