!165 "jscrash of close and id 5.0.1

Merge pull request !165 from zhouhongli2023/OpenHarmony-5.0.1-Release
This commit is contained in:
openharmony_ci 2024-11-19 09:57:26 +00:00 committed by Gitee
commit b331cf3089
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 3 deletions

View File

@ -1500,8 +1500,8 @@ export default class ConversationController {
let tempWeekId = item.week?.id;
if (list.length > 0) {
item.dateShow =
(tempDateId != (list[list.length-1]).date.id)
&& (tempWeekId != (list[list.length-1]).week.id)
(tempDateId != (list[list.length-1]).date?.id)
&& (tempWeekId != (list[list.length-1]).week?.id)
}
}

View File

@ -112,7 +112,7 @@ export abstract class WorkerWrapper {
HiLog.i(TAG, `${this.getWorkerType()} worker close!`);
if (this.mWorker != null) {
HiLog.i(TAG, 'this mWorker is right');
this.mWorker.terminate();
this.mWorker?.terminate();
}
this.mWorker = null;
this.callBacks.clear();