Skip to content

Commit 2292217

Browse files
committed
RE1-T88 PR#264 fix
1 parent f157b83 commit 2292217

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Providers/Resgrid.Providers.Messaging/NovuProvider.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ private async Task<bool> UpdateSubscriberApns(string id, string token, string ap
174174
jsonContent = JsonConvert.SerializeObject(payload, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
175175
}
176176

177+
if (string.IsNullOrWhiteSpace(jsonContent))
178+
{
179+
return false;
180+
}
177181

178182
request.Content = new StringContent(jsonContent, Encoding.UTF8, "application/json");
179183
HttpResponseMessage response = await client.SendAsync(request);

0 commit comments

Comments
 (0)