Skip to content

Commit

Permalink
handle undefined presence-id in authn (#6451)
Browse files Browse the repository at this point in the history
  • Loading branch information
lazedo authored Apr 7, 2020
1 parent 6df0731 commit a6d1567
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions applications/ecallmgr/src/ecallmgr_fs_authn.erl
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ presence_id(AccountId, Endpoint) ->
PresenceId = kzd_users:presence_id(Endpoint, kzd_users:email(Endpoint)),
maybe_fix_presence_id(AccountId, PresenceId).

maybe_fix_presence_id(_AccountId, undefined) ->
undefined;
maybe_fix_presence_id(AccountId, PresenceId) ->
case binary:match(PresenceId, <<"@">>) of
'nomatch' -> fix_presence_id(AccountId, PresenceId);
Expand Down

0 comments on commit a6d1567

Please sign in to comment.