author | Matthew Wild <mwild1@gmail.com> |
Thu, 07 Apr 2022 17:22:02 +0100 | |
branch | 0.12 |
changeset 12458 | b2438f374b3e |
parent 12456 | c475a7802169 |
child 12459 | e703a9d71360 |
child 12460 | 64722dcb0b8c |
--- 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];