aboutsummaryrefslogtreecommitdiffstats
path: root/util/pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-05-16 19:05:20 +0200
committerKim Alvefur <zash@zash.se>2021-05-16 19:05:20 +0200
commitf650ac55372078ef52bea9da68d881db7c756f11 (patch)
tree1fa13837da078e3dbaa8a490081e3d77d440dd92 /util/pubsub.lua
parentf5757cae7fff33b74783b8006cbfc1a57ec7c4be (diff)
parent0c6f17043f100150629d9b4c9c27a3489958f67c (diff)
downloadprosody-f650ac55372078ef52bea9da68d881db7c756f11.tar.gz
prosody-f650ac55372078ef52bea9da68d881db7c756f11.zip
Merge 0.11->trunk
Diffstat (limited to 'util/pubsub.lua')
-rw-r--r--util/pubsub.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua
index cfac7a68..98399dae 100644
--- a/util/pubsub.lua
+++ b/util/pubsub.lua
@@ -565,6 +565,10 @@ function service:publish(node, actor, id, item, requested_config) --> ok, err
return nil, "invalid-item";
end
local node_data = self.data[node];
+ if not node_data then
+ -- FIXME how is this possible? #1657
+ return nil, "internal-server-error";
+ end
local ok = node_data:set(id, item);
if not ok then
return nil, "internal-server-error";