summaryrefslogtreecommitdiff
path: root/script-beta/jsonrpc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta/jsonrpc.lua')
-rw-r--r--script-beta/jsonrpc.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/jsonrpc.lua b/script-beta/jsonrpc.lua
index 4dda6fb0..5957588f 100644
--- a/script-beta/jsonrpc.lua
+++ b/script-beta/jsonrpc.lua
@@ -49,7 +49,10 @@ function m.decode(reader, errHandle)
if not content then
return nil
end
+ local null = json.null
+ json.null = nil
local suc, res = pcall(json.decode, content)
+ json.null = null
if not suc then
errHandle('Proto parse error: ' .. res)
return nil