mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
devtools: check if impl is not null before use
This commit is contained in:
parent
0ac8b08be1
commit
759506c751
1 changed files with 1 additions and 1 deletions
|
|
@ -310,7 +310,7 @@ NetworkResponseListener.prototype = {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let impl = this._wrappedNotificationCallbacks.getInterface(iid);
|
let impl = this._wrappedNotificationCallbacks.getInterface(iid);
|
||||||
impl[method].apply(impl, args);
|
if(impl) impl[method].apply(impl, args);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e.result != Cr.NS_ERROR_NO_INTERFACE) {
|
if (e.result != Cr.NS_ERROR_NO_INTERFACE) {
|
||||||
throw e;
|
throw e;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue