From 3f1bb6771a53c79366b390015703f0959d16f380 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Tue, 21 Apr 2020 11:14:11 +0100 Subject: [PATCH] Dont try and clone properties of a null object --- packages/node_modules/@node-red/util/lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/util/lib/util.js b/packages/node_modules/@node-red/util/lib/util.js index ea6090355..8b4fd0c17 100644 --- a/packages/node_modules/@node-red/util/lib/util.js +++ b/packages/node_modules/@node-red/util/lib/util.js @@ -80,7 +80,7 @@ function ensureBuffer(o) { * @memberof @node-red/util_util */ function cloneMessage(msg) { - if (typeof msg !== "undefined") { + if (typeof msg !== "undefined" && msg !== null) { // Temporary fix for #97 // TODO: remove this http-node-specific fix somehow var req = msg.req;