Skip to content

Commit

Permalink
Merge pull request #3427 from nextcloud/bugix/3424/avoidNpeForCallWit…
Browse files Browse the repository at this point in the history
…hGuestWithoutName

Avoid Npe for call with a guest without name
  • Loading branch information
AndyScherzinger authored Nov 3, 2023
2 parents 270e79b + 68ab275 commit 455a58a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2786,11 +2786,11 @@ class CallActivity : CallBaseActivity() {
private set

private inner class WebRtcMessageListener : SignalingMessageReceiver.WebRtcMessageListener {
override fun onOffer(sdp: String, nick: String) {
override fun onOffer(sdp: String, nick: String?) {
onOfferOrAnswer(nick)
}

override fun onAnswer(sdp: String, nick: String) {
override fun onAnswer(sdp: String, nick: String?) {
onOfferOrAnswer(nick)
}

Expand All @@ -2803,7 +2803,7 @@ class CallActivity : CallBaseActivity() {
}
}

private fun onOfferOrAnswer(nick: String) {
private fun onOfferOrAnswer(nick: String?) {
this.nick = nick
if (callParticipants[sessionId] != null) {
callParticipants[sessionId]!!.setNick(nick)
Expand Down

0 comments on commit 455a58a

Please sign in to comment.