From 75031bf69604a390174cb8a0ead7b147eb5e9aaa Mon Sep 17 00:00:00 2001 From: vyPal <66716025+vyPal@users.noreply.github.com> Date: Thu, 25 Apr 2024 19:10:58 +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 c1263bf..0eaf06a 100644 --- a/lib/messages.dart +++ b/lib/messages.dart @@ -128,7 +128,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; } /*