Skip to content

Commit 9db6e2d

Browse files
committed
fix: potential NRT
Signed-off-by: Vincent Biret <[email protected]>
1 parent 878593b commit 9db6e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Models/References/OpenApiTagReference.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public OpenApiTagReference(string referenceId, OpenApiDocument hostDocument)
5757
public OpenApiTagReference(OpenApiTagReference source):base()
5858
{
5959
Reference = source?.Reference != null ? new(source.Reference) : null;
60-
_target = source._target;
60+
_target = source?._target;
6161
}
6262

6363
private const string ReferenceErrorMessage = "Setting the value from the reference is not supported, use the target property instead.";

0 commit comments

Comments
 (0)