From 9ade98bbe9404a5626412d9b9b35a885ab3a2bbe Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 5 May 2016 10:29:41 -0700 Subject: [PATCH] Add default for missing sources --- DATabaseTwo/DATabaseTwo.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/DATabaseTwo/DATabaseTwo.cs b/DATabaseTwo/DATabaseTwo.cs index df9b17d4..b2444bcb 100644 --- a/DATabaseTwo/DATabaseTwo.cs +++ b/DATabaseTwo/DATabaseTwo.cs @@ -435,6 +435,12 @@ Make a selection: { RomData rom = newroms[i]; + // In the case that the RomData is incomplete, skip it + if (rom.Name == null || rom.Game == null) + { + continue; + } + // WOD origninally stripped out any subdirs from the imported files, we do the same rom.Name = Path.GetFileName(rom.Name);