diff --git a/atom/browser/atom_browser_client.cc b/atom/browser/atom_browser_client.cc index cbe5f5b8a5..b62bc37b4b 100644 --- a/atom/browser/atom_browser_client.cc +++ b/atom/browser/atom_browser_client.cc @@ -26,6 +26,10 @@ struct FindByProcessId { } bool operator() (NativeWindow* const window) { + content::WebContents* web_contents = window->GetWebContents(); + if (!web_contents) + return false; + int id = window->GetWebContents()->GetRenderProcessHost()->GetID(); return id == child_process_id_; }