Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix: Adds nil check in some util methods.

damencho532b5858c55e
diff --git a/resources/prosody-plugins/util.lib.lua b/resources/prosody-plugins/util.lib.lua
index 943d724d8b..08a2671e78 100644
--- a/resources/prosody-plugins/util.lib.lua
+++ b/resources/prosody-plugins/util.lib.lua
@@ -474,12 +474,20 @@ end
-- Returns the initiator extension if the stanza is coming from a sip jigasi
function is_sip_jigasi(stanza)
+ if not stanza then
+ return false;
+ end
+
return stanza:get_child('initiator', 'http://jitsi.org/protocol/jigasi');
end
function is_transcriber_jigasi(stanza)
+ if not stanza then
+ return false;
+ end
+
local features = stanza:get_child('features');
- if not features then
+ if not features then
return false;
end