mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
Fixed crash if messages list is null in notification (even if it shouldn't happen)
This commit is contained in:
parent
562a37f4f1
commit
45d733f5df
1 changed files with 1 additions and 1 deletions
|
|
@ -671,7 +671,7 @@ class NotificationsManager(private val context: Context) {
|
|||
): Notification {
|
||||
val me = Person.Builder().setName(notifiable.myself).build()
|
||||
val style = NotificationCompat.MessagingStyle(me)
|
||||
val largeIcon: Bitmap? = notifiable.messages.last().senderAvatar
|
||||
val largeIcon: Bitmap? = notifiable.messages.lastOrNull()?.senderAvatar
|
||||
|
||||
var lastPerson: Person? = null
|
||||
for (message in notifiable.messages) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue