From 1bf00c816f226a5623fbbf6ee82cf36d27c95a04 Mon Sep 17 00:00:00 2001 From: Pavel Merzlyakov Date: Mon, 11 Sep 2023 11:14:55 +0300 Subject: [PATCH] fix DiffCollection --- tpl/macro.twig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tpl/macro.twig b/tpl/macro.twig index b4403fb..e0cbce8 100644 --- a/tpl/macro.twig +++ b/tpl/macro.twig @@ -447,7 +447,8 @@ public class {{o.name}} : IRpc //old items leftovers are considered removed for(; old_i < old_items.Count; old_i++) { - removed.Add(old_items[old_i].MakeId()); + if(removed != null) + removed.Add(old_items[old_i].MakeId()); has_diff = true; }