Skip to content

Commit

Permalink
routeData() null exception handling (topic.dart)
Browse files Browse the repository at this point in the history
  • Loading branch information
DESKTOP-0PP18PH\FTR authored and DESKTOP-0PP18PH\FTR committed Jul 16, 2024
1 parent f85ac9e commit f0acf9d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/src/topic.dart
Original file line number Diff line number Diff line change
Expand Up @@ -705,8 +705,13 @@ class Topic {
/// Process data message
void routeData(DataMessage data) {
if (data.content != null) {
if (touched!.isBefore(data.ts!)) {
touched = data.ts;
if (touched == null) {
touched=data.ts;
}
else{
if (touched!.isBefore(data.ts!)) {
touched = data.ts;
}
}
}

Expand Down

0 comments on commit f0acf9d

Please sign in to comment.