Skip to content

Commit ebbe5c1

Browse files
authored
Merge pull request #1104 from quanterion/patch-1
Fix check Extensions object for null to avoid null reference exception
2 parents 1a7392f + 48a809e commit ebbe5c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Services/OpenApiWalker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ internal void Walk(IOpenApiExtensible openApiExtensible)
274274

275275
_visitor.Visit(openApiExtensible);
276276

277-
if (openApiExtensible != null)
277+
if (openApiExtensible.Extensions != null)
278278
{
279279
foreach (var item in openApiExtensible.Extensions)
280280
{

0 commit comments

Comments
 (0)