Diff

util/pubsub.lua @ 11567:c471e19a238e

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Sun, 16 May 2021 19:05:20 +0200
parent 11565:087b275a9aee
parent 10537:c5558138ce33
child 11719:3986b5a0c3fc
line wrap: on
line diff
--- 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";