VOID *Data;\r
UINTN DataSize;\r
\r
+ if (Request == NULL) {\r
+ return EFI_NOT_FOUND;\r
+ }\r
+\r
Data = NULL;\r
ConfigAccess = CONFIG_ACCESS_PRIVATE_FROM_PROTOCOL (This);\r
\r
BufferStorage = GetStorageFromConfigString (ConfigAccess->ThunkContext->FormSet, Request);\r
\r
+ if (BufferStorage == NULL) {\r
+ *Progress = (EFI_STRING) Request;\r
+ return EFI_NOT_FOUND;\r
+ }\r
+\r
if (ConfigAccess->ThunkContext->NvMapOverride == NULL) {\r
//\r
// NvMapOverride is not used. Get the Storage data from EFI Variable or Framework Form Callback.\r
BOOLEAN ResetRequired;\r
BOOLEAN DataAllocated;\r
\r
+ if (Configuration == NULL) {\r
+ return EFI_INVALID_PARAMETER;\r
+ }\r
+\r
Data = NULL;\r
ConfigAccess = CONFIG_ACCESS_PRIVATE_FROM_PROTOCOL (This);\r
\r
BufferStorage = GetStorageFromConfigString (ConfigAccess->ThunkContext->FormSet, Configuration);\r
\r
+ if (BufferStorage == NULL) {\r
+ *Progress = Configuration;\r
+ return EFI_NOT_FOUND;\r
+ }\r
+\r
DataSize2 = BufferStorage->Size;\r
if (ConfigAccess->ThunkContext->NvMapOverride == NULL) {\r
DataAllocated = TRUE;\r