Fix calendar event deserialization when startTime is null
This commit is contained in:
parent
c425b2dc5a
commit
4c48ebd7e5
@ -125,9 +125,9 @@ class PluginCalendarEventDeserializer(
|
|||||||
PluginCalendarEvent(
|
PluginCalendarEvent(
|
||||||
id = id,
|
id = id,
|
||||||
color = json.color,
|
color = json.color,
|
||||||
startTime = json.startTime ?: 0,
|
startTime = json.startTime,
|
||||||
endTime = json.endTime ?: 0,
|
endTime = json.endTime ?: return null,
|
||||||
allDay = json.allDay ?: false,
|
allDay = json.allDay == true,
|
||||||
description = json.description,
|
description = json.description,
|
||||||
calendarName = json.calendarName,
|
calendarName = json.calendarName,
|
||||||
location = json.location,
|
location = json.location,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user