\r
// Get the section at the given index\r
SectionDescriptor = FirstLevelTable[TableIndex];\r
+ if (!SectionDescriptor) {\r
+ return EFI_NOT_FOUND;\r
+ }\r
\r
// If 'BaseAddress' belongs to the section then round it to the section boundary\r
if (((SectionDescriptor & TT_DESCRIPTOR_SECTION_TYPE_MASK) == TT_DESCRIPTOR_SECTION_TYPE_SECTION) ||\r