mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
Prevent JSON error
This commit is contained in:
@@ -508,7 +508,7 @@ public class FragmentRules extends FragmentBase {
|
||||
break;
|
||||
case EntityRule.TYPE_ANSWER:
|
||||
long identity = jaction.getLong("identity");
|
||||
long answer = jaction.getLong("answer");
|
||||
long answer = jaction.optLong("answer", -1L);
|
||||
EntityIdentity i = db.identity().getIdentity(identity);
|
||||
EntityAnswer t = db.answer().getAnswer(answer);
|
||||
if (i != null)
|
||||
|
||||
Reference in New Issue
Block a user