diff --git a/chrome/browser/ash/attestation/soft_bind_attestation_flow.cc b/chrome/browser/ash/attestation/soft_bind_attestation_flow.cc index 53e70dba043708..e4f0a3d78c76ff 100644 --- a/chrome/browser/ash/attestation/soft_bind_attestation_flow.cc +++ b/chrome/browser/ash/attestation/soft_bind_attestation_flow.cc @@ -135,6 +135,10 @@ const std::string& SoftBindAttestationFlow::Session::GetUserKey() const { void SoftBindAttestationFlow::Session::ReportFailure( const std::string& error_message) { + if (!callback_) { + LOG(ERROR) << "Attestation session failure callback in null."; + return; + } std::move(callback_).Run( std::vector{"INVALID:" + error_message}); }