Skip to content

Commit

Permalink
psx - fix loading m3u with non-good discs
Browse files Browse the repository at this point in the history
  • Loading branch information
zeromus committed Jul 17, 2015
1 parent 194d988 commit 1f9f712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BizHawk.Client.Common/RomLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public bool LoadRom(string path, CoreComm nextComm, bool forceAccurateCore = fal
{
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
{
Expand Down

0 comments on commit 1f9f712

Please sign in to comment.