diff --git a/lib/pages/whisper/view.dart b/lib/pages/whisper/view.dart index d01b23a6..f17146ca 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 {