From 5c80bab6826081960548b4d2794debc7e4b05721 Mon Sep 17 00:00:00 2001 From: Laurence Rowe Date: Tue, 29 Nov 2016 15:00:12 -0800 Subject: [PATCH] Check for null in isEmptyAtom. --- lib/get/onMissing.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/get/onMissing.js b/lib/get/onMissing.js index 245e24ff..22b8ee6e 100644 --- a/lib/get/onMissing.js +++ b/lib/get/onMissing.js @@ -43,8 +43,7 @@ function concatAndInsertMissing(model, remainingPath, depth, requestedPath, } function isEmptyAtom(atom) { - var type = typeof atom; - if (type !== "object") { + if (atom === null || typeof atom !== "object") { return false; }