Null items are no fun

This commit is contained in:
Matt Nadareski
2020-07-19 12:57:13 -07:00
parent 334e1c4585
commit 9c7b044e93
3 changed files with 8 additions and 4 deletions

View File

@@ -295,6 +295,10 @@ namespace SabreTools.Library.DatFiles
/// <param name="item">Item to remove info for</param>
public void RemoveItem(DatItem item)
{
// If we have a null item, we can't do anything
if (item == null)
return;
// No matter what the item is, we increate the count
lock (_lockObject)
{