misc: chore: Fix possible System.NullReferenceExceptions

This commit is contained in:
KeatonTheBot
2025-04-12 12:27:15 -05:00
parent 19013d360a
commit 3c644a712d
8 changed files with 26 additions and 27 deletions
@@ -124,7 +124,7 @@ namespace Ryujinx.HLE.HOS.Services.Nv
{
targetPrevAddress = InvalidAddress;
}
node = node.Previous;
node = node?.Previous;
_tree.Remove(prevAddress);
_list.Remove(_dictionary[prevAddress]);
_dictionary.Remove(prevAddress);