summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--remoting/host/remoting_me2me_host.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index d608f26..a695df2 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -676,7 +676,8 @@ bool HostProcess::OnCurtainPolicyUpdate(bool curtain_required) {
else
LOG(ERROR) << "Policy does not require curtain-mode.";
curtain_required_ = curtain_required;
- curtaining_host_observer_->SetEnableCurtaining(curtain_required_);
+ if (curtaining_host_observer_)
+ curtaining_host_observer_->SetEnableCurtaining(curtain_required_);
return true;
}
return false;