Index: components/policy/core/common/remote_commands/remote_commands_service.cc |
diff --git a/components/policy/core/common/remote_commands/remote_commands_service.cc b/components/policy/core/common/remote_commands/remote_commands_service.cc |
index 1b3bb678470730734ba4a4019eab67229713d974..d7b53bc693ccd0781e1be23d035ede2b0f17ec5e 100644 |
--- a/components/policy/core/common/remote_commands/remote_commands_service.cc |
+++ b/components/policy/core/common/remote_commands/remote_commands_service.cc |
@@ -30,7 +30,7 @@ RemoteCommandsService::~RemoteCommandsService() { |
} |
bool RemoteCommandsService::FetchRemoteCommands() { |
- if (!client_->is_registered()) |
+ if (!client_ || !client_->is_registered()) |
return false; |
if (command_fetch_in_progress_) { |