mirror of https://github.com/M66B/FairEmail.git
Prevent JSON error
This commit is contained in:
parent
96a99caad2
commit
fe92ef1c41
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue