Skip to content

Commit

Permalink
com.utilities.rest 3.2.5 (#89)
Browse files Browse the repository at this point in the history
- fix NRE when response Parameters is null
  • Loading branch information
StephenHodgson authored Oct 10, 2024
1 parent 2ad52bc commit ea6b89f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Runtime/Response.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public string ToString(string methodName)

if (!string.IsNullOrWhiteSpace(Body))
{
if (Parameters.ServerSentEvents.Count > 0)
if (Parameters is { ServerSentEvents: { Count: > 0 } })
{
var array = new JArray();

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Utilities.Rest",
"description": "This package contains useful RESTful utilities for the Unity Game Engine.",
"keywords": [],
"version": "3.2.4",
"version": "3.2.5",
"unity": "2021.3",
"documentationUrl": "https://github.com/RageAgainstThePixel/com.utilities.rest#documentation",
"changelogUrl": "https://github.com/RageAgainstThePixel/com.utilities.rest/releases",
Expand Down

0 comments on commit ea6b89f

Please sign in to comment.