aboutsummaryrefslogtreecommitdiff
path: root/libdino
diff options
context:
space:
mode:
authorrim <11380091+rozhuk-im@users.noreply.github.com>2022-08-22 21:39:34 +0300
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-10-01 21:28:28 +0200
commitc0bde78e161069dd23522200cba56fd99e2963a9 (patch)
tree74b109b89b0b0c8a3639dbadf97d3f9443c108e4 /libdino
parentcb13545b47bccfea2ab9e5468f781fd8ff9d7897 (diff)
Fix crash when calling contact from Conversations (#1259)
fixes #1227
Diffstat (limited to 'libdino')
-rw-r--r--libdino/src/service/call_peer_state.vala5
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;