Skip to content

Commit b6b7fbc

Browse files
authored
fix: check possible undefined cache for absolute paths
1 parent 9467abe commit b6b7fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/namespace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ Namespace.prototype.lookup = function lookup(path, filterTypes, parentAlreadyChe
408408
return this.root.lookup(path.slice(1), filterTypes);
409409

410410
// Early bailout for objects with matching absolute paths
411-
var found = this.root._fullyQualifiedObjects["." + flatPath];
411+
var found = this.root._fullyQualifiedObjects && this.root._fullyQualifiedObjects["." + flatPath];
412412
if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) {
413413
return found;
414414
}

0 commit comments

Comments
 (0)