Index: /trunk/src/VBox/VMM/VMMAll/APICAll.cpp
===================================================================
--- /trunk/src/VBox/VMM/VMMAll/APICAll.cpp	(revision 60478)
+++ /trunk/src/VBox/VMM/VMMAll/APICAll.cpp	(revision 60479)
@@ -437,5 +437,5 @@
  * @param   pVCpu               The cross context virtual CPU structure.
  * @param   pu8PendingIntr      Where to store the interrupt vector if the
- *                              interrupt is pending.
+ *                              interrupt is pending, optional can be NULL.
  */
 static bool apicGetHighestPendingInterrupt(PVMCPU pVCpu, uint8_t *pu8PendingIntr)
@@ -446,5 +446,6 @@
     {
         Assert(irrv <= (int)UINT8_MAX);
-        *pu8PendingIntr = (uint8_t)irrv;
+        if (pu8PendingIntr)
+            *pu8PendingIntr = (uint8_t)irrv;
         return true;
     }
