mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 19:58:41 +00:00
add null check
This commit is contained in:
parent
c6e8c8fa32
commit
3d23948b4c
1 changed files with 2 additions and 1 deletions
|
|
@ -52,7 +52,8 @@ class ContactsDao extends DatabaseAccessor<TwonlyDatabase>
|
||||||
// last flame update was yesterday. check if it can be updated.
|
// last flame update was yesterday. check if it can be updated.
|
||||||
bool updateFlame = false;
|
bool updateFlame = false;
|
||||||
if (received) {
|
if (received) {
|
||||||
if (contact.lastMessageSend!.isAfter(startOfToday)) {
|
if (contact.lastMessageSend != null &&
|
||||||
|
contact.lastMessageSend!.isAfter(startOfToday)) {
|
||||||
// today a message was already send -> update flame
|
// today a message was already send -> update flame
|
||||||
updateFlame = true;
|
updateFlame = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue