Update lib/src/Room.dart

This commit is contained in:
Christian 2019-06-15 07:16:45 +00:00
parent cf60b50954
commit 167a7155f8
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ class Room {
/// The last message sent to this room.
String get lastMessage {
if (events?.length > 0)
if (events != null && events.length > 0)
return events[0].getBody();
else
return "";