Skip to content

Commit

Permalink
Fix nullable reference
Browse files Browse the repository at this point in the history
  • Loading branch information
eatdrinksleepcode committed Jun 17, 2024
1 parent a9ae805 commit 03897bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NSwag.Core/OpenApiOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public IReadOnlyList<OpenApiParameter> ActualParameters

/// <summary>Gets the response body and dereferences it if necessary.</summary>
[JsonIgnore]
public OpenApiRequestBody ActualRequestBody => RequestBody.ActualRequestBody;
public OpenApiRequestBody ActualRequestBody => RequestBody?.ActualRequestBody;

/// <summary>Gets the responses from the operation and from the <see cref="OpenApiDocument"/> and dereferences them if necessary.</summary>
[JsonIgnore]
Expand Down

0 comments on commit 03897bb

Please sign in to comment.