Prevent JSON error

master
M66B 2 months ago
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…
Cancel
Save