ShellPkg/Dp: Add null pointer check

Cc: Liming Gao <liming.gao@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
Bi, Dandan 2018-02-09 11:10:11 +08:00 committed by Liming Gao
parent 6b86f6f336
commit 2d70c90d2e
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ GetBootPerformanceTable (
&AcpiTable
);
}
if (EFI_ERROR(Status)) {
if (EFI_ERROR(Status) || AcpiTable == NULL) {
return Status;
}