From 02a41b30b2df98dedc0d51e826eee7ae1bc0aebb Mon Sep 17 00:00:00 2001 From: vyPal <66716025+vyPal@users.noreply.github.com> Date: Fri, 26 Apr 2024 16:57:23 +0200 Subject: [PATCH] Fixed issue with message page when message data has null Value --- lib/messages.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/messages.dart b/lib/messages.dart index 1f5d987..6ae3279 100644 --- a/lib/messages.dart +++ b/lib/messages.dart @@ -233,8 +233,8 @@ class TimeTablePageState extends BaseState { ), ], ), - if (msg.data["Value"].containsKey("attachements") && - msg.data["Value"]["attachements"].length > 0) + if (msg.data["Value"] != null && + msg.data["Value"]["attachements"]?.length > 0) Padding( padding: const EdgeInsets.only(top: 5), child: Row(