/[EmuXPortal]/trunk/EmuXPortal/Api/RomFavorite.cs
ViewVC logotype

Diff of /trunk/EmuXPortal/Api/RomFavorite.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/EmuXPortal/Api/RomFavorite.cs	2014/08/04 12:41:06	206
+++ trunk/EmuXPortal/Api/RomFavorite.cs	2014/08/04 12:57:44	207
@@ -80,7 +80,10 @@
                 IRomConfig rom_config = rom.RomConfig;
                 try
                 {
-                    var format = rom_config.RomImage.RawFormat;
+                    if (rom_config != null && rom_config.RomImage != null)
+                    {
+                        var format = rom_config.RomImage.RawFormat;
+                    }
                 }
                 catch (ArgumentException)
                 {

 

  ViewVC Help
Powered by ViewVC 1.1.22