mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +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 {
|
||||
let impl = this._wrappedNotificationCallbacks.getInterface(iid);
|
||||
impl[method].apply(impl, args);
|
||||
if(impl) impl[method].apply(impl, args);
|
||||
} catch (e) {
|
||||
if (e.result != Cr.NS_ERROR_NO_INTERFACE) {
|
||||
throw e;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue