From 8a58f7730cea4f8b3acc8b845dfa14162e380845 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 2 Sep 2024 18:07:11 +0200 Subject: [PATCH] Send: improved check confirm --- app/src/extra/java/eu/faircode/email/Send.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }