Skip to content

Commit

Permalink
check Extensions object for null
Browse files Browse the repository at this point in the history
using Microsoft.OpenApi.OData package it generates OpenApi document with OpenApiComponents.Extensions == null
  • Loading branch information
quanterion authored and Afsalmc committed Dec 14, 2022
1 parent 32d621e commit d624cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Services/OpenApiWalker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ internal void Walk(IOpenApiExtensible openApiExtensible)

_visitor.Visit(openApiExtensible);

if (openApiExtensible != null)
if (openApiExtensible.Extensions != null)
{
foreach (var item in openApiExtensible.Extensions)
{
Expand Down

0 comments on commit d624cd5

Please sign in to comment.