# HG changeset patch # User Matthew Wild # Date 1649348522 -3600 # Node ID b2438f374b3e7242299cde0010db01c29cb47e08 # Parent c475a780216930dcbc4786872a5d17e651c5a05b mod_storage_xep0227: Handle missing {pubsub#owner}pubsub element (fixes #1740) diff -r c475a7802169 -r b2438f374b3e plugins/mod_storage_xep0227.lua --- a/plugins/mod_storage_xep0227.lua Tue Apr 05 14:27:37 2022 +0200 +++ b/plugins/mod_storage_xep0227.lua Thu Apr 07 17:22:02 2022 +0100 @@ -299,6 +299,9 @@ ]] }; local owner_el = user_el:get_child("pubsub", xmlns_pubsub_owner); + if not owner_el then + return nil; + end for node_el in owner_el:childtags() do local node_name = node_el.attr.node; local node = nodes[node_name];