Skip to content

Commit

Permalink
Bug/devtooling 804 (#1235)
Browse files Browse the repository at this point in the history
* added nil checks

* reverted null check
  • Loading branch information
kavinbalagen authored Sep 5, 2024
1 parent b3da47a commit 6c77917
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ func getSmsAddressIdByNameFn(p *routingSmsAddressProxy, name string, ctx context
return "", true, resp, fmt.Errorf("failed to read sms addresses: %v", err)
}
for _, address := range *smsAddresses {
if address.Name == nil {
continue
}
if *address.Name == name {
return *address.Id, false, resp, nil
}
Expand Down

0 comments on commit 6c77917

Please sign in to comment.