summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/net/proxying_url_loader_factory_qt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/net/proxying_url_loader_factory_qt.cpp b/src/core/net/proxying_url_loader_factory_qt.cpp
index c541c17b6..ec107fe70 100644
--- a/src/core/net/proxying_url_loader_factory_qt.cpp
+++ b/src/core/net/proxying_url_loader_factory_qt.cpp
@@ -236,8 +236,8 @@ QWebEngineUrlRequestInterceptor* InterceptedRequest::getPageInterceptor()
{
if (auto wc = webContents()) {
auto view = static_cast<content::WebContentsImpl *>(wc)->GetView();
- WebContentsAdapterClient *client = WebContentsViewQt::from(view)->client();
- return client->webContentsAdapter()->requestInterceptor();
+ if (WebContentsAdapterClient *client = WebContentsViewQt::from(view)->client())
+ return client->webContentsAdapter()->requestInterceptor();
}
return nullptr;
}