summaryrefslogtreecommitdiffstats
path: root/content/browser/browser_child_process_host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/browser_child_process_host.cc')
-rw-r--r--content/browser/browser_child_process_host.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/browser/browser_child_process_host.cc b/content/browser/browser_child_process_host.cc
index d38f5d7..7beb07a 100644
--- a/content/browser/browser_child_process_host.cc
+++ b/content/browser/browser_child_process_host.cc
@@ -127,7 +127,7 @@ void BrowserChildProcessHost::OnChildDied() {
// This may be called by both the channel's OnChannelError handler
// as well as the process launcher's OnProcessLaunched handler, so
// we need to be careful about the state of the process launcher here.
- if (!child_process_->IsStarting())
+ if (child_process_.get() && !child_process_->IsStarting())
set_handle(child_process_->GetHandle());
if (handle() != base::kNullProcessHandle) {
int exit_code;