mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Null check!
This commit is contained in:
@@ -431,6 +431,12 @@ namespace SabreTools.Helper.Dats
|
||||
_files = new SortedDictionary<string, List<DatItem>>();
|
||||
}
|
||||
|
||||
// If the key is null, we return false since keys can't be null
|
||||
if (key == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
lock (_files)
|
||||
{
|
||||
return _files.ContainsKey(key);
|
||||
|
||||
Reference in New Issue
Block a user