Skip to content

Commit ade27e7

Browse files
committed
Merge pull request #671 from evdokim/patch-1
an additional null check added
2 parents 153cba2 + c70cdfd commit ade27e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resolver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ Resolver.prototype.resolveTo = function (root, property, resolutionTable, locati
565565
var sp, i;
566566
var ref = property.$ref;
567567
var lroot = root;
568-
if (typeof ref !== 'undefined') {
568+
if ((typeof ref !== 'undefined') && (ref !== null)) {
569569
if(ref.indexOf('#') >= 0) {
570570
var parts = ref.split('#');
571571

0 commit comments

Comments
 (0)