From 759506c7516c3271d640ce38b9781cc3718c2227 Mon Sep 17 00:00:00 2001 From: roytam1 Date: Thu, 30 Nov 2023 11:08:32 +0800 Subject: [PATCH] devtools: check if impl is not null before use --- devtools/shared/webconsole/network-monitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/shared/webconsole/network-monitor.js b/devtools/shared/webconsole/network-monitor.js index 7fec4ff1cc..18647e059c 100644 --- a/devtools/shared/webconsole/network-monitor.js +++ b/devtools/shared/webconsole/network-monitor.js @@ -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;