Skip to content

Commit

Permalink
- Added null check to firebase transport components.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradencohen committed Aug 16, 2023
1 parent d3b6cb2 commit 49e9228
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rock/Communication/Transport/Firebase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ private void SendPushNotification( Model.Communication communication, int medium

recipient.Status = status;
recipient.TransportEntityTypeName = this.GetType().FullName;
recipient.UniqueMessageId = response.Responses.FirstOrDefault()?.MessageId;
recipient.UniqueMessageId = response.Responses?.FirstOrDefault()?.MessageId;

if ( recipient.PersonAlias != null )
{
Expand Down
2 changes: 1 addition & 1 deletion Rock/Communication/Transport/RockMobilePush.cs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ private void SendPushNotification( Model.Communication communication, int medium

recipient.Status = status;
recipient.TransportEntityTypeName = this.GetType().FullName;
recipient.UniqueMessageId = response.Responses.FirstOrDefault()?.MessageId;
recipient.UniqueMessageId = response.Responses?.FirstOrDefault()?.MessageId;

if ( recipient.PersonAlias != null )
{
Expand Down

0 comments on commit 49e9228

Please sign in to comment.