From db5eaa95532722bb5c3ba9d9cd2179e0523b5824 Mon Sep 17 00:00:00 2001 From: zwtmichael Date: Tue, 10 May 2022 16:09:39 +0800 Subject: [PATCH] modify nullptr operation Signed-off-by: zwtmichael --- .../libs/distributeddb/common/src/user_change_monitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/distributeddataservice/libs/distributeddb/common/src/user_change_monitor.cpp b/services/distributeddataservice/libs/distributeddb/common/src/user_change_monitor.cpp index 6add9c4d4..469933dab 100644 --- a/services/distributeddataservice/libs/distributeddb/common/src/user_change_monitor.cpp +++ b/services/distributeddataservice/libs/distributeddb/common/src/user_change_monitor.cpp @@ -49,7 +49,7 @@ void UserChangeMonitor::Stop() if (!isStarted_) { return; } - if (userNotifier_ == nullptr) { + if (userNotifier_ != nullptr) { userNotifier_->UnRegisterEventType(USER_ACTIVE_EVENT); userNotifier_->UnRegisterEventType(USER_NON_ACTIVE_EVENT); userNotifier_->UnRegisterEventType(USER_ACTIVE_TO_NON_ACTIVE_EVENT); -- Gitee