Index: /trunk/src/VBox/Main/ConsoleImpl2.cpp
===================================================================
--- /trunk/src/VBox/Main/ConsoleImpl2.cpp	(revision 17229)
+++ /trunk/src/VBox/Main/ConsoleImpl2.cpp	(revision 17230)
@@ -833,5 +833,8 @@
 
             /* Needed configuration values for the bios. */
-            rc = CFGMR3InsertString(pBiosCfg, "SataHardDiskDevice", "ahci");        RC_CHECK();
+            if (pBiosCfg)
+            {
+                rc = CFGMR3InsertString(pBiosCfg, "SataHardDiskDevice", "ahci");        RC_CHECK();
+            }
 
             for (uint32_t i = 0; i < 4; i++)
@@ -845,5 +848,8 @@
                 hrc = sataController->GetIDEEmulationPort(i, &lPortNumber);             H();
                 rc = CFGMR3InsertInteger(pCfg, s_apszConfig[i], lPortNumber);           RC_CHECK();
-                rc = CFGMR3InsertInteger(pBiosCfg, s_apszBiosConfig[i], lPortNumber);   RC_CHECK();
+                if (pBiosCfg)
+                {
+                    rc = CFGMR3InsertInteger(pBiosCfg, s_apszBiosConfig[i], lPortNumber);   RC_CHECK();
+                }
             }
 
