util/pubsub.lua
changeset 11571 c471e19a238e
parent 11569 087b275a9aee
parent 10541 c5558138ce33
child 11723 3986b5a0c3fc
--- a/util/pubsub.lua	Sun May 16 16:52:59 2021 +0200
+++ b/util/pubsub.lua	Sun May 16 19:05:20 2021 +0200
@@ -565,6 +565,10 @@
 		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";