# HG changeset patch # User Jonas Schäfer # Date 1623504593 -7200 # Node ID 240fa534f586ef2172c437bd815d976076a10535 # Parent 05c74210c007a77cc0b7daab18900bb4094882b6 mod_groups_muc_bookmarks: handle removal of accounts without bookmarks Otherwise, nil ensues. diff -r 05c74210c007 -r 240fa534f586 mod_groups_muc_bookmarks/mod_groups_muc_bookmarks.lua --- a/mod_groups_muc_bookmarks/mod_groups_muc_bookmarks.lua Sat Jun 12 14:47:06 2021 +0200 +++ b/mod_groups_muc_bookmarks/mod_groups_muc_bookmarks.lua Sat Jun 12 15:29:53 2021 +0200 @@ -91,6 +91,9 @@ autojoin = autojoin or false and true local current = get_current_bookmarks(jid, pep_service) + if not current then + return + end current:maptags(function (node) if node.attr.xmlns and node.attr.xmlns ~= XMLNS_XEP0048 then return node