diff --git a/libcef/browser/resource_dispatcher_host_delegate.cc b/libcef/browser/resource_dispatcher_host_delegate.cc index 0cd7c627e..d207fa80f 100644 --- a/libcef/browser/resource_dispatcher_host_delegate.cc +++ b/libcef/browser/resource_dispatcher_host_delegate.cc @@ -53,6 +53,8 @@ void SendExecuteMimeTypeHandlerEvent( web_contents = content::WebContents::FromRenderFrameHost( content::RenderFrameHost::FromID(render_process_id, render_frame_id)); } + if (!web_contents) + return; CefRefPtr browser = CefBrowserHostImpl::GetBrowserForContents(web_contents);