diff --git a/src/namespace.js b/src/namespace.js index 305e700b6..111a9ea7a 100644 --- a/src/namespace.js +++ b/src/namespace.js @@ -408,7 +408,7 @@ Namespace.prototype.lookup = function lookup(path, filterTypes, parentAlreadyChe return this.root.lookup(path.slice(1), filterTypes); // Early bailout for objects with matching absolute paths - var found = this.root._fullyQualifiedObjects["." + flatPath]; + var found = this.root._fullyQualifiedObjects && this.root._fullyQualifiedObjects["." + flatPath]; if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) { return found; }