mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Dont try and clone properties of a null object
This commit is contained in:
parent
0b3ced5203
commit
3f1bb6771a
@ -80,7 +80,7 @@ function ensureBuffer(o) {
|
|||||||
* @memberof @node-red/util_util
|
* @memberof @node-red/util_util
|
||||||
*/
|
*/
|
||||||
function cloneMessage(msg) {
|
function cloneMessage(msg) {
|
||||||
if (typeof msg !== "undefined") {
|
if (typeof msg !== "undefined" && msg !== null) {
|
||||||
// Temporary fix for #97
|
// Temporary fix for #97
|
||||||
// TODO: remove this http-node-specific fix somehow
|
// TODO: remove this http-node-specific fix somehow
|
||||||
var req = msg.req;
|
var req = msg.req;
|
||||||
|
Loading…
Reference in New Issue
Block a user