From 688adf27ecf3d33bd718f3ba3cf374327f4165d2 Mon Sep 17 00:00:00 2001 From: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> Date: Mon, 28 Mar 2022 20:42:41 -0700 Subject: [PATCH] resolve #3192 seems to have been a null reference on init. saving seems to still function fine after this change --- .../Consoles/Nintendo/NES/Boards/Namcot129_163.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Namcot129_163.cs b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Namcot129_163.cs index c1fab834e0..7fc4c89220 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Namcot129_163.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Namcot129_163.cs @@ -267,7 +267,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES if (Wram != null) return Wram; else - return audio.GetSaveRam(); + return audio?.GetSaveRam(); } else {