update services/session_manager/src/session/mini_session/mini_session_manager.c.

Signed-off-by: 郑筝 <zhengzheng16@huawei.com>
This commit is contained in:
郑筝
2025-07-28 02:35:40 +00:00
committed by Gitee
parent 27a0e9d986
commit 33754f8ec9
@@ -157,10 +157,7 @@ int32_t QueryLightSession(int64_t requestId, int32_t osAccountId, LightSession *
uint32_t index = 0;
LightSessionInfo *entry;
FOR_EACH_HC_VECTOR(g_lightSessionInfoList, index, entry) {
if (entry == NULL) {
continue;
}
if (entry->session == NULL) {
if (entry == NULL || entry->session == NULL) {
continue;
}
if (requestId == entry->session->requestId && osAccountId == entry->session->osAccountId) {