Skip to content

Commit

Permalink
Guard against reading a property on undefined, fixes emberjs#1004
Browse files Browse the repository at this point in the history
  • Loading branch information
lolmaus committed Aug 9, 2019
1 parent 9147268 commit b315337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ember_debug/object-inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export default EmberObject.extend(PortMixin, {
dropObject(objectId) {
let object = this.sentObjects[objectId];

if (object.reopen) {
if (object && object.reopen) {
object.reopen({ willDestroy: object._oldWillDestroy });
delete object._oldWillDestroy;
}
Expand Down

0 comments on commit b315337

Please sign in to comment.