We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d6582f5 + f0dc51d commit 39bbbc2Copy full SHA for 39bbbc2
src/Microsoft.OpenApi.OData.Reader/Common/Utils.cs
@@ -238,7 +238,8 @@ internal static bool IsBaseTypeReferencedAsTypeInModel(
238
if (isReferencedInAction) return true;
239
240
// Recursively check the base type
241
- return model.IsBaseTypeReferencedAsTypeInModel(baseType.BaseType, structuredTypes, actions);
+ if (baseType.BaseType is not null)
242
+ return model.IsBaseTypeReferencedAsTypeInModel(baseType.BaseType, structuredTypes, actions);
243
}
244
245
return false;
0 commit comments