Skip to content

Commit

Permalink
Guard against reading a property on undefined, fixes #1004 (#1005)
Browse files Browse the repository at this point in the history
  • Loading branch information
lolmaus authored and RobbieTheWagner committed Aug 9, 2019
1 parent 9147268 commit 7a438be
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 7a438be

Please sign in to comment.