diff --git a/rpdata/api/Comment.js b/rpdata/api/Comment.js index b14a334..af20b18 100644 --- a/rpdata/api/Comment.js +++ b/rpdata/api/Comment.js @@ -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)