From 732cc7cc95fd1361483f2a560ac50d12aee8a3f4 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Tue, 13 Sep 2022 13:02:16 -0400 Subject: [PATCH] Null safety for event titles --- lib/src/services/events/events_service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/services/events/events_service.dart b/lib/src/services/events/events_service.dart index 44c6586..fc3a2f7 100644 --- a/lib/src/services/events/events_service.dart +++ b/lib/src/services/events/events_service.dart @@ -162,7 +162,7 @@ class ClpEvent implements Event { factory ClpEvent.fromJson(Map 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"],