Browse files

guard against null

  • Loading branch information...
1 parent 99032d7 commit 3cab514b1cfa369c60c4153e51c8f7792ba8d362 @substack committed Jul 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
2 index.js
@@ -45,7 +45,7 @@ module.exports = function pathway (root, keys) {
check(i, v);
}
}
- else if (ntype === 'object') {
+ else if (node && ntype === 'object') {
var keys_ = Object.keys(node);
for (var i = 0, l = keys_.length; i < l; i++) {
var k = keys_[i];

0 comments on commit 3cab514

Please sign in to comment.