Fix empty chats assertion violation.

This commit is contained in:
John Preston 2018-06-22 15:36:41 +01:00
parent 1e10529f20
commit 51189fd244
1 changed files with 3 additions and 3 deletions

View File

@ -869,9 +869,9 @@ Result TextWriter::writeChatEnd() {
}
Result TextWriter::writeChatsEnd() {
Expects(_chats != nullptr);
_chats = nullptr;
if (_chats) {
_chats = nullptr;
}
return Result::Success();
}