From 3bba80fa56d26510d938aae085751b8eaa2d37dc Mon Sep 17 00:00:00 2001 From: vyPal <66716025+vyPal@users.noreply.github.com> Date: Thu, 25 Apr 2024 19:18:46 +0200 Subject: [PATCH] Fix method '[]' was called on null --- lib/messages.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/messages.dart b/lib/messages.dart index cd0fabc..1f5d987 100644 --- a/lib/messages.dart +++ b/lib/messages.dart @@ -139,7 +139,7 @@ class TimeTablePageState extends BaseState { } for (TimelineItem msg in msgsWOR) { bool isImportantMessage = false; - if (msg.data["Value"]["messageContent"] != null) { + if (msg.data["Value"]?["messageContent"] != null) { isImportantMessage = true; } /*