api: Fixed fatal error if Comment.character is null.
the build was successful

This commit is contained in:
2019-01-17 21:06:43 +01:00
parent 5260d96f37
commit 3ed3e50486
+1 -1
View File
@@ -17,7 +17,7 @@ class Comment {
this.subject = subject
this.author = author
this.characterName = characterName
this.character = CommentCharacter.fromData(character)
this.character = character != null ? CommentCharacter.fromData(character) : null
this.fictionalDate = new Date(fictionalDate)
this.createdDate = new Date(createdDate)
this.editedDate = new Date(editedDate)