diff --git a/PerformancePkg/Dp_App/DpUtilities.c b/PerformancePkg/Dp_App/DpUtilities.c index 0d4e17acc1..f44745fd1d 100644 --- a/PerformancePkg/Dp_App/DpUtilities.c +++ b/PerformancePkg/Dp_App/DpUtilities.c @@ -289,7 +289,7 @@ GetNameFromHandle ( &gEfiLoadedImageDevicePathProtocolGuid, (VOID **) &LoadedImageDevicePath ); - if (!EFI_ERROR (Status)) { + if (!EFI_ERROR (Status) && (LoadedImageDevicePath != NULL)) { DevicePath = LoadedImageDevicePath; //