diff options
author | rim <11380091+rozhuk-im@users.noreply.github.com> | 2022-08-22 21:39:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-22 20:39:34 +0200 |
commit | b8e84c83268a11ae41ad1d673999362427fd755c (patch) | |
tree | 26b9f0fdac22209ebb938d85f5d05fed7c081266 /libdino | |
parent | 117f19381233207e4b5aef03c82e7dd4b2d1debd (diff) | |
download | dino-b8e84c83268a11ae41ad1d673999362427fd755c.tar.gz dino-b8e84c83268a11ae41ad1d673999362427fd755c.zip |
Fix crash when calling contact from Conversations (#1259)
fixes #1227
Diffstat (limited to 'libdino')
-rw-r--r-- | libdino/src/service/call_peer_state.vala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libdino/src/service/call_peer_state.vala b/libdino/src/service/call_peer_state.vala index c97aa48d..c7fa04da 100644 --- a/libdino/src/service/call_peer_state.vala +++ b/libdino/src/service/call_peer_state.vala @@ -45,7 +45,10 @@ public class Dino.PeerState : Object { this.stream_interactor = stream_interactor; this.calls = stream_interactor.get_module(Calls.IDENTITY); - var session_info_type = stream_interactor.module_manager.get_module(call.account, Xep.JingleRtp.Module.IDENTITY).session_info_type; + Xep.JingleRtp.Module jinglertp_module = stream_interactor.module_manager.get_module(call.account, Xep.JingleRtp.Module.IDENTITY); + if (jinglertp_module == null) return; + + var session_info_type = jinglertp_module.session_info_type; session_info_type.mute_update_received.connect((session,mute, name) => { if (this.sid != session.sid) return; |