diff --git a/cef3/libcef/browser/browser_host_impl.cc b/cef3/libcef/browser/browser_host_impl.cc index d02b0b9cc..e61481b31 100644 --- a/cef3/libcef/browser/browser_host_impl.cc +++ b/cef3/libcef/browser/browser_host_impl.cc @@ -1505,7 +1505,7 @@ void CefBrowserHostImpl::CloseContents(content::WebContents* source) { // If this method is called in response to something other than // WindowDestroyed() ask the user if the browser should close. - if (IsWindowRenderingDisabled() || !window_destroyed_) { + if (client_.get() && (IsWindowRenderingDisabled() || !window_destroyed_)) { CefRefPtr handler = client_->GetLifeSpanHandler(); if (handler.get()) {