mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Null checks, de-parallelize
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user