Fix crash after save
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2020-01-13 22:47:10 +01:00
parent 9833ef4885
commit cf9c9b4cb4
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class Task {
description = json['description'],
text = json['text'],
done = json['done'],
owner = User.fromJson(json['createdBy']);
owner = json['createdBy'].toString() == "null" ? null : User.fromJson(json['createdBy']); // There has to be a better way of doing this...
toJSON() => {
'id': id,