Bug fix: Error thrown on list containing null item

This commit is contained in:
Bobbie Hodgetts
2020-09-23 13:09:24 +01:00
parent 9ec07b8703
commit dcd32b76fa
2 changed files with 6 additions and 0 deletions

View File

@@ -41,6 +41,8 @@ namespace bnhtrade.Core.Logic.Stock
{
CacheInnit();
typeCodeList.RemoveAll(string.IsNullOrWhiteSpace);
if (typeCodeList == null || !typeCodeList.Any())
{
return;