From ad2baeff2209aa6161b90bf6f4e8454f1692f892 Mon Sep 17 00:00:00 2001 From: xgu3 Date: Tue, 16 Jan 2007 02:55:46 +0000 Subject: [PATCH] Fix the issues, bootmaint Null Ptr Error git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2251 6f19259b-4bc3-4df7-8a09-765794883524 --- EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/BootMaint.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/BootMaint.c b/EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/BootMaint.c index 9b84db59d0..69da6768e9 100644 --- a/EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/BootMaint.c +++ b/EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/BootMaint.c @@ -449,6 +449,7 @@ Returns: Index2 = (UINT16) (KeyValue - HANDLE_OPTION_OFFSET); NewMenuEntry = BOpt_GetMenuEntry (&DriverMenu, Index2); + ASSERT (NewMenuEntry != NULL); Private->HandleContext = (BM_HANDLE_CONTEXT *) NewMenuEntry->VariableContext; CleanUpPage (FORM_DRV_ADD_HANDLE_DESC_ID, Private); @@ -556,6 +557,8 @@ Returns: case FORM_CON_COM_ID: NewMenuEntry = BOpt_GetMenuEntry (&TerminalMenu, Private->CurrentTerminal); + ASSERT (NewMenuEntry != NULL); + NewTerminalContext = (BM_TERMINAL_CONTEXT *) NewMenuEntry->VariableContext; NewTerminalContext->BaudRateIndex = CurrentFakeNVMap->COMBaudRate; -- 2.39.2