Skip to content

Commit f13906d

Browse files
committed
Merge remote-tracking branch 'irvinesunday/vnext' into vnext
2 parents 30ad539 + 876611b commit f13906d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.OpenApi/Services/OpenApiUrlSpaceNode.cs

Lines changed: 2 additions & 2 deletions
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>
@@ -144,7 +144,7 @@ public static OpenApiUrlSpaceNode Create(OpenApiDocument doc, string label = "")
144144
var paths = doc?.Paths;
145145
if (paths != null)
146146
{
147-
root = new OpenApiUrlSpaceNode("");
147+
root = new OpenApiUrlSpaceNode(string.Empty);
148148

149149
foreach (var path in paths)
150150
{

0 commit comments

Comments
 (0)