Prevent JSON error

This commit is contained in:
M66B 2024-09-15 15:38:05 +02:00
parent 96a99caad2
commit fe92ef1c41
1 changed files with 1 additions and 1 deletions

View File

@ -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)