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(