OcBootManagementLib: Fix potential NULL dereferencing
@@ -1077,7 +1077,7 @@ InternalRegisterBootstrapBootOption (
DEBUG_INFO,
"OCB: %a existing option at Boot%04x, %a\n",
CurrOptionExists ? "Have" : "No",
- BootOrder[1],
+ BootOrder != NULL ? BootOrder[1] : 0,
CurrOptionValid ? "valid" : "invalid"
));
