Add a check for CreateQuestion may be return NULL.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8308 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
gikidy 2009-05-13 09:24:25 +00:00
parent 0ad78d0779
commit 945e3aed0f
1 changed files with 2 additions and 1 deletions

View File

@ -1247,7 +1247,8 @@ ParseOpCodes (
case EFI_IFR_ONE_OF_OP:
case EFI_IFR_NUMERIC_OP:
CurrentStatement = CreateQuestion (OpCodeData, FormSet, CurrentForm);
ASSERT(CurrentStatement != NULL);
CurrentStatement->Flags = ((EFI_IFR_ONE_OF *) OpCodeData)->Flags;
Value = &CurrentStatement->HiiValue;