From 42341b40fabf682c66152c0bbe2bd7407d4987db Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 13 May 2015 09:18:46 -0400 Subject: [PATCH] Fix crash when calling LoadURL from OnRenderProcessTerminated (issue #1161) --- libcef/browser/content_browser_client.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libcef/browser/content_browser_client.cc b/libcef/browser/content_browser_client.cc index 1d89574cf..756288671 100644 --- a/libcef/browser/content_browser_client.cc +++ b/libcef/browser/content_browser_client.cc @@ -876,7 +876,8 @@ void CefContentBrowserClient::OverrideWebkitPrefs( BrowserToWebSettings(browser->settings(), *prefs); prefs->base_background_color = GetBaseBackgroundColor(rvh); - rvh->GetView()->SetBackgroundColor(prefs->base_background_color); + if (rvh->GetView()) + rvh->GetView()->SetBackgroundColor(prefs->base_background_color); prefs->asynchronous_spell_checking_enabled = true; // Auto-correct does not work in combination with the unified text checker.