NewMenuEntry->OptionNumber = Index2;\r
\r
NewConsoleContext->DevicePath = DuplicateDevicePath (DevicePathInst);\r
+ ASSERT (NewConsoleContext->DevicePath != NULL);\r
NewMenuEntry->DisplayString = EfiLibStrFromDatahub (NewConsoleContext->DevicePath);\r
if (NULL == NewMenuEntry->DisplayString) {\r
NewMenuEntry->DisplayString = DevicePathToStr (NewConsoleContext->DevicePath);\r