Skip to content

Commit

Permalink
Fixed issue with message page when message data has null Value
Browse files Browse the repository at this point in the history
  • Loading branch information
vyPal committed Apr 26, 2024
1 parent 3bba80f commit 02a41b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/messages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ class TimeTablePageState extends BaseState<MessagesPage> {
),
],
),
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(
Expand Down

0 comments on commit 02a41b3

Please sign in to comment.