diff --git a/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Dxe.c b/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Dxe.c index eee30c852f..d4245465ce 100644 --- a/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Dxe.c +++ b/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Dxe.c @@ -447,7 +447,7 @@ DebugCommunicationUsb3DxeConstructor ( EFI_EVENT Event; Status = EfiGetSystemConfigurationTable (&gUsb3DbgGuid, (VOID **) &AddrPtr); - if (EFI_ERROR (Status)) { + if (EFI_ERROR (Status) || (AddrPtr == NULL)) { // // Instead of using local variables, install system configuration table for // the local instance and the buffer to save instance address pointer.