Replaced error throwing with null return value

This commit is contained in:
Eris 2021-05-11 22:44:05 +02:00
parent b842cfe53c
commit 8d741fc5bf

View file

@ -248,7 +248,7 @@ namespace ModAssistant
}
if (stream.Position == stream.Length) // we went through the entire stream without finding the key
throw new KeyNotFoundException("Could not find key '" + key + "' in " + filename);
return null;
while (stream.Position < stream.Length)
{