aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_storage_xep0227.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_storage_xep0227.lua b/plugins/mod_storage_xep0227.lua
index 9a3ca002..c1c7a62c 100644
--- a/plugins/mod_storage_xep0227.lua
+++ b/plugins/mod_storage_xep0227.lua
@@ -299,6 +299,9 @@ handlers.pep = {
]]
};
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];