Null safety for event titles

This commit is contained in:
Michael Thomas 2022-09-13 13:02:16 -04:00
parent 10826e79b2
commit 732cc7cc95
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ class ClpEvent implements Event {
factory ClpEvent.fromJson(Map<String, dynamic> json) {
return ClpEvent(
title: json["title"],
title: json["title"] ?? "",
startTime: DateTime.parse(json["date"] + " " + json["start"]),
endTime: DateTime.parse(json["date"] + " " + json["end"]),
location: json["location"],