From 9331e38cdfb6779716f10864bb086b829d78dc3b Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 15 Oct 2022 20:53:56 +0200 Subject: [PATCH] Fixed exporting IDs --- app/src/main/java/eu/faircode/email/ActivitySetup.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivitySetup.java b/app/src/main/java/eu/faircode/email/ActivitySetup.java index 8cb8a2eeb3..a779aaa2c1 100644 --- a/app/src/main/java/eu/faircode/email/ActivitySetup.java +++ b/app/src/main/java/eu/faircode/email/ActivitySetup.java @@ -728,7 +728,7 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac switch (type) { case EntityRule.TYPE_MOVE: case EntityRule.TYPE_COPY: - long target = jaction.getLong("target"); + long target = jaction.optLong("target", -1L); EntityFolder f = db.folder().getFolder(target); EntityAccount a = (f == null ? null : db.account().getAccount(f.account)); if (a != null) @@ -737,8 +737,8 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac jaction.put("targetFolderName", f.name); break; case EntityRule.TYPE_ANSWER: - long identity = jaction.getLong("identity"); - long answer = jaction.getLong("answer"); + long identity = jaction.optLong("identity", -1L); + long answer = jaction.optLong("answer", -1L); EntityIdentity i = db.identity().getIdentity(identity); EntityAnswer t = db.answer().getAnswer(answer); if (i != null)