From f0eadb0a1640978955b11d73df5fe7532cb3f2f0 Mon Sep 17 00:00:00 2001 From: Lan <50151341+Lannnnnnnnn@users.noreply.github.com> Date: Sun, 6 Nov 2022 00:15:04 +0200 Subject: [PATCH] added 1 null check top tier commit --- Kehyeedra3/Commands/Interactive.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kehyeedra3/Commands/Interactive.cs b/Kehyeedra3/Commands/Interactive.cs index e782171..186fb7d 100644 --- a/Kehyeedra3/Commands/Interactive.cs +++ b/Kehyeedra3/Commands/Interactive.cs @@ -631,7 +631,7 @@ namespace Kehyeedra3.Commands int itemid = 0; int itemnum = 0; - if (!itemlist.Any(i => (int)i.Id == (int.Parse(sec)))) + if (sec != null && !itemlist.Any(i => (int)i.Id == (int.Parse(sec))) ) { sec = null; }