Skip to content

Commit a659d3f

Browse files
irvinesundayddyett
andauthored
Update src/Microsoft.OpenApi/Services/OpenApiUrlSpaceNode.cs
Co-authored-by: DeVere Dyett <[email protected]>
1 parent bb600b4 commit a659d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Services/OpenApiUrlSpaceNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public string Identifier
8181
/// <returns>true or false.</returns>
8282
public bool HasOperations()
8383
{
84-
return PathItem != null && PathItem.Operations != null && PathItem.Operations.Count > 0;
84+
return PathItem?.Operations != null && PathItem.Operations.Count > 0;
8585
}
8686

8787
/// <summary>

0 commit comments

Comments
 (0)