From 0f7be5ec30a824a6d43c37413d951796b6c2fb2d Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Wed, 15 Jan 2025 09:26:58 +0800 Subject: [PATCH] fix: get whisper content related #170 Signed-off-by: bggRGjQaUbCoE --- lib/pages/whisper/view.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pages/whisper/view.dart b/lib/pages/whisper/view.dart index d01b23a6f..f17146ca0 100644 --- a/lib/pages/whisper/view.dart +++ b/lib/pages/whisper/view.dart @@ -176,7 +176,7 @@ class _WhisperPageState extends State { physics: const NeverScrollableScrollPhysics(), itemBuilder: (context, int i) { dynamic content = - sessionList[i].lastMsg.content; + sessionList[i]?.lastMsg?.content; if (content == null || content == "") { content = '不支持的消息类型'; } else {