Skip to content

Commit

Permalink
Check for null in isEmptyAtom.
Browse files Browse the repository at this point in the history
  • Loading branch information
lrowe committed Nov 29, 2016
1 parent 21236f2 commit 5c80bab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/get/onMissing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5c80bab

Please sign in to comment.