diff --git a/brightray/browser/net_log.cc b/brightray/browser/net_log.cc index 1ac254cf145c..7a798ae98e6c 100644 --- a/brightray/browser/net_log.cc +++ b/brightray/browser/net_log.cc @@ -38,8 +38,10 @@ NetLog::NetLog() { } NetLog::~NetLog() { - file_net_log_observer_->StopObserving(nullptr, base::Closure()); - file_net_log_observer_.reset(); + if (file_net_log_observer_) { + file_net_log_observer_->StopObserving(nullptr, base::Closure()); + file_net_log_observer_.reset(); + } } void NetLog::StartLogging() {