summaryrefslogtreecommitdiff
path: root/system/gd/security/internal/security_manager_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'system/gd/security/internal/security_manager_impl.cc')
-rw-r--r--system/gd/security/internal/security_manager_impl.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/system/gd/security/internal/security_manager_impl.cc b/system/gd/security/internal/security_manager_impl.cc
index 46d2e22cf4..4e21bc9c62 100644
--- a/system/gd/security/internal/security_manager_impl.cc
+++ b/system/gd/security/internal/security_manager_impl.cc
@@ -701,7 +701,9 @@ void SecurityManagerImpl::OnPairingFinished(security::PairingResultOrFailure pai
PairingFailure failure = std::get<PairingFailure>(pairing_result);
LOG_INFO(" ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ failure message: %s",
failure.message.c_str());
- NotifyDeviceBondFailed(stored_chan->channel_->GetDevice(), failure);
+ if (stored_chan) {
+ NotifyDeviceBondFailed(stored_chan->channel_->GetDevice(), failure);
+ }
return;
}