Enable nullability everywhere

This commit is contained in:
Matt Nadareski
2024-02-28 19:19:50 -05:00
parent 11d024bd16
commit 823a9ca7b7
145 changed files with 1545 additions and 1260 deletions

View File

@@ -118,11 +118,13 @@ namespace SabreTools.Filtering
continue;
// Get the list of DatItems for the machine
ConcurrentList<DatItem> datItems = datFile.Items[machine];
var datItems = datFile.Items[machine];
if (datItems == null)
continue;
// Try to get the map values, if possible
combinedMachineMaps.TryGetValue(machine, out Dictionary<MachineField, string> machineMappings);
combinedDatItemMaps.TryGetValue(machine, out Dictionary<DatItemField, string> datItemMappings);
combinedMachineMaps.TryGetValue(machine, out var machineMappings);
combinedDatItemMaps.TryGetValue(machine, out var datItemMappings);
// Create a setter with the new mappings
Setter setter = new()