Bug 1538782 - Check for null when accessing tabModal. r=whimboo

The `tabModal` property getter can return null so we need to check it before accessing sub-properties.

Differential Revision: https://phabricator.services.mozilla.com/D24738

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Eric Rahm 2019-03-26 00:55:03 +00:00
parent 13064496dc
commit 3b644ff58e

View File

@ -152,10 +152,12 @@ modal.Dialog = class {
}
get args() {
return this.tabModal.args;
let tm = this.tabModal;
return tm ? tm.args : null;
}
get ui() {
return this.tabModal.ui;
let tm = this.tabModal;
return tm ? tm.ui : null;
}
};