From 83c6ef8c13a365b85f272d793c2a576f88ee6514 Mon Sep 17 00:00:00 2001 From: "a.chubar" Date: Fri, 20 Oct 2023 09:26:40 +0400 Subject: [PATCH] Added null check for removed ids --- tpl/macro.twig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tpl/macro.twig b/tpl/macro.twig index 2d63ad7..92ae6bc 100644 --- a/tpl/macro.twig +++ b/tpl/macro.twig @@ -411,7 +411,8 @@ public class {{o.name}} : IRpc if(old < item) { - removed.Add(old.MakeId()); + if(removed != null) + removed.Add(old.MakeId()); old_i++; has_diff = true; }