added 1 null check
top tier commit
This commit is contained in:
@@ -631,7 +631,7 @@ namespace Kehyeedra3.Commands
|
|||||||
int itemid = 0;
|
int itemid = 0;
|
||||||
int itemnum = 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;
|
sec = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user