From b5b7019325a78201f8f69f8591b06accb01a8e9d Mon Sep 17 00:00:00 2001 From: damencho Date: Thu, 21 Sep 2023 09:53:35 -0500 Subject: [PATCH] fix: Adds check for missing main_room. --- resources/prosody-plugins/mod_persistent_lobby.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/prosody-plugins/mod_persistent_lobby.lua b/resources/prosody-plugins/mod_persistent_lobby.lua index 585790bdd5e5..2ebfaa48b275 100644 --- a/resources/prosody-plugins/mod_persistent_lobby.lua +++ b/resources/prosody-plugins/mod_persistent_lobby.lua @@ -144,7 +144,7 @@ run_when_component_loaded(lobby_muc_component_host, function(host_module, host_n local lobby_room = event.room; local main_room = lobby_room.main_room; - if is_healthcheck_room(main_room.jid) or not has_persistent_lobby(main_room) then + if not main_room or is_healthcheck_room(main_room.jid) or not has_persistent_lobby(main_room) then return; end