GenericBdsLib: Remove a un-reasonable ASSERT when BdsLibVariableToOption() returns NULL because it is possible for BdsLibVariableToOption() to return NULL if the boot option variable does not exist or the boot option is not active.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9805 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
rsun3 2010-01-25 05:20:44 +00:00
parent 052019e1fa
commit 7490e2bed8
1 changed files with 3 additions and 3 deletions

View File

@ -572,9 +572,9 @@ BdsLibBuildOptionFromVar (
}
Option = BdsLibVariableToOption (BdsCommonOptionList, OptionName);
ASSERT (Option != NULL);
Option->BootCurrent = OptionOrder[Index];
if (Option != NULL) {
Option->BootCurrent = OptionOrder[Index];
}
}
FreePool (OptionOrder);