fix warning

Signed-off-by: zhouyongfei <zhouyongfei@huawei.com>
This commit is contained in:
zhouyongfei
2022-03-26 08:45:13 +00:00
parent 60c93da455
commit 2cdb419ddd
+2 -2
View File
@@ -339,7 +339,7 @@ namespace MiscServices {
}
PerUserSession *userSession = GetUserSession(userId);
if (user!session) {
if (!userSession) {
return ErrorCode::ERROR_NULL_POINTER;
}
KeyboardType *type = userSession->GetCurrentKeyboardType();
@@ -540,7 +540,7 @@ namespace MiscServices {
Message *destMsg = new Message(MSG_ID_EXIT_SERVICE, nullptr);
handler->SendMessage(destMsg);
PerUserSession *userSession = GetUserSession(it->first);
if (user!session) {
if (!userSession) {
IMSA_HILOGE("getUserSession fail.");
return;
}