From f17fd1ca8172f27f4694cde0f0d6427ad047ef37 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Sat, 7 Dec 2013 02:01:46 +0000 Subject: [PATCH] Merge revision 1543 changes: - Fix crash when browser window creation is canceled (issue #1147). git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1547@1545 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- libcef/browser/browser_host_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcef/browser/browser_host_impl.cc b/libcef/browser/browser_host_impl.cc index 1bb64f98d..08fce5e04 100644 --- a/libcef/browser/browser_host_impl.cc +++ b/libcef/browser/browser_host_impl.cc @@ -311,7 +311,7 @@ CefRefPtr CefBrowserHost::CreateBrowserSync( CefRefPtr browser = CefBrowserHostImpl::Create(windowInfo, new_settings, client, NULL, info, NULL); - if (!url.empty()) { + if (browser && !url.empty()) { browser->LoadURL(CefFrameHostImpl::kMainFrameId, url, content::Referrer(), content::PAGE_TRANSITION_TYPED, std::string()); }