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.