diff --git a/ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c b/ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c index fafc64fe2d..4dd7dd9ed1 100644 --- a/ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c +++ b/ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c @@ -257,7 +257,7 @@ GetBootPerformanceTable ( &AcpiTable ); } - if (EFI_ERROR(Status)) { + if (EFI_ERROR(Status) || AcpiTable == NULL) { return Status; }