[DatFIle] Add one more check

This commit is contained in:
Matt Nadareski
2016-09-20 15:32:23 -07:00
parent 943e455cff
commit 656474de7d

View File

@@ -2306,6 +2306,13 @@ namespace SabreTools.Helper
continue; continue;
} }
// If we somehow have a null list, just skip it
if (sortable[key] == null)
{
logger.Warning("Blank list found for key: " + key);
continue;
}
List<DatItem> sortedlist = sortable[key]; List<DatItem> sortedlist = sortable[key];
DatItem.Sort(ref sortedlist, norename); DatItem.Sort(ref sortedlist, norename);
sortable[key] = sortedlist; sortable[key] = sortedlist;