psx - fix loading m3u with non-good discs

This commit is contained in:
zeromus 2015-07-17 11:48:02 -05:00
parent 194d988a5f
commit 1f9f712af9
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ namespace BizHawk.Client.Common
{
string discHash = new DiscHasher(disc).Calculate_PSX_BizIDHash().ToString("X8");
game = Database.CheckDatabase(discHash);
if (game.IsRomStatusBad() || game.Status == RomStatus.NotInDatabase)
if (game == null || game.IsRomStatusBad() || game.Status == RomStatus.NotInDatabase)
sw.WriteLine("Disc could not be identified as known-good. Look for a better rip.");
else
{