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 53922d7 commit 75031bf
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 @@ -128,7 +128,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 75031bf

Please sign in to comment.