1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 23:18:26 +00:00

devtools: check if impl is not null before use

This commit is contained in:
2023-11-30 11:08:32 +08:00
parent 0ac8b08be1
commit 759506c751
@@ -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;