code check

Signed-off-by: 李文龙 <liwenlong22@huawei.com>
This commit is contained in:
李文龙 2024-07-29 16:42:21 +08:00
parent 4bd4977f44
commit 44714768cb

View File

@ -397,11 +397,11 @@ void AGnssNiManager::SendNiNotification(const GnssNiNotificationRequest &notif)
void AGnssNiManager::SendUserResponse(GnssNiResponseCmd responseCmd)
{
std::unique_lock<std::mutex> lock(mutex_);
if (gnssInterface_ == nullptr) {
LBSLOGE(GNSS, "gnssInterfacev1_0 is nullptr");
return;
}
std::unique_lock<std::mutex> lock(mutex_);
gnssInterface_->SendNiUserResponse(niNotificationId_, responseCmd);
}