Skip to content

Commit

Permalink
Fix method '[]' was called on null
Browse files Browse the repository at this point in the history
  • Loading branch information
vyPal committed Apr 25, 2024
1 parent 5ec4a0e commit 3bba80f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/messages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class TimeTablePageState extends BaseState<MessagesPage> {
}
for (TimelineItem msg in msgsWOR) {
bool isImportantMessage = false;
if (msg.data["Value"]["messageContent"] != null) {
if (msg.data["Value"]?["messageContent"] != null) {
isImportantMessage = true;
}
/*
Expand Down

0 comments on commit 3bba80f

Please sign in to comment.