// AllocatePool() called below has to be running outside the GCD lock.\r
//\r
DescriptorCount = CoreCountGcdMapEntry (&mGcdMemorySpaceMap);\r
- if (DescriptorCount == *NumberOfDescriptors) {\r
+ if (DescriptorCount == *NumberOfDescriptors && *MemorySpaceMap != NULL) {\r
//\r
// Fill in the MemorySpaceMap if no memory space map change.\r
//\r