diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.IMemoryDomains.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.IMemoryDomains.cs index af9bb6759f..0808767605 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.IMemoryDomains.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.IMemoryDomains.cs @@ -37,9 +37,12 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES domains.Add(BatteryRam); } - var PRGROM = new MemoryDomain("PRG ROM", cart.prg_size * 1024, MemoryDomain.Endian.Little, - addr => Board.ROM[addr], (addr, value) => Board.ROM[addr] = value); - domains.Add(PRGROM); + if (Board.ROM != null) + { + var PRGROM = new MemoryDomain("PRG ROM", cart.prg_size * 1024, MemoryDomain.Endian.Little, + addr => Board.ROM[addr], (addr, value) => Board.ROM[addr] = value); + domains.Add(PRGROM); + } if (Board.VROM != null) {