From 27cbe0d1ecfd8ac8e48178941ba283bfedc8f1ce Mon Sep 17 00:00:00 2001 From: Daniel Brain Date: Mon, 13 Jun 2016 17:05:42 -0700 Subject: [PATCH] Null check --- src/lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/util.js b/src/lib/util.js index e28d45a9..9e77a0b0 100644 --- a/src/lib/util.js +++ b/src/lib/util.js @@ -400,7 +400,7 @@ export let util = { if (result !== undefined) { newobj[key] = result; - } else if (typeof item === 'object') { + } else if (typeof item === 'object' && item !== null) { newobj[key] = util.replaceObject(item, callback); } else { newobj[key] = item;