Null checks, de-parallelize

This commit is contained in:
Matt Nadareski
2020-07-23 10:08:41 -07:00
parent 03cdc8be60
commit c47793fb57
2 changed files with 14 additions and 2 deletions

View File

@@ -784,6 +784,9 @@ namespace SabreTools.Library.DatFiles
foreach (string key in datFile.Keys)
{
List<DatItem> items = datFile[key];
if (items == null)
continue;
List<DatItem> newitems = items.Where(i => i.ItemType != ItemType.Blank).ToList();
datFile.Remove(key);
@@ -890,6 +893,9 @@ namespace SabreTools.Library.DatFiles
foreach (string key in outDat.Keys)
{
List<DatItem> items = outDat[key];
if (items == null)
continue;
List<DatItem> newitems = items.Where(i => i.ItemType != ItemType.Blank).ToList();
outDat.Remove(key);