mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add nullable context to SabreTools.DatFiles
This commit is contained in:
@@ -78,7 +78,7 @@ namespace SabreTools.DatFiles.Formats
|
||||
};
|
||||
|
||||
// Read item values
|
||||
DatItem item = null;
|
||||
DatItem? item = null;
|
||||
switch (row.Type.AsItemType())
|
||||
{
|
||||
case ItemType.Disk:
|
||||
@@ -137,8 +137,11 @@ namespace SabreTools.DatFiles.Formats
|
||||
}
|
||||
|
||||
// Now process and add the item
|
||||
item.CopyMachineInformation(machine);
|
||||
ParseAddHelper(item, statsOnly);
|
||||
if (item != null)
|
||||
{
|
||||
item.CopyMachineInformation(machine);
|
||||
ParseAddHelper(item, statsOnly);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user