diff --git a/javascript.js b/javascript.js index 3524c8aa8..c112d0df2 100644 --- a/javascript.js +++ b/javascript.js @@ -1657,6 +1657,10 @@ isAck = undefined; } + if (state === null) { + state = {val: null}; + } + if (isAck === true || isAck === false || isAck === 'true' || isAck === 'false') { if (typeof state === 'object') { state.ack = isAck;