diff options
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c')
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c b/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c index 0372f2755b..63996b62a6 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c @@ -1023,7 +1023,9 @@ FindNextMenu ( }
Selection->Statement = NULL;
- CurrentMenu->QuestionId = 0;
+ if (CurrentMenu != NULL) {
+ CurrentMenu->QuestionId = 0;
+ }
Selection->Action = UI_ACTION_EXIT;
return TRUE;
|