Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e49afe2 authored by Robert Snoeberger's avatar Robert Snoeberger
Browse files

Notification might not have a contentIntent

Fixes: 143077322
Test: I'm able to run my memory microbenchmark in ag/9592498 without crashing.
Change-Id: I2f66a0938458a4119476f7e381d3a7a4064f8ce1
parent b77d972a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -126,6 +126,7 @@ private fun NotificationEntry.extractPerson(): PersonModel? {
    }

    val clickIntent = sbn.notification.contentIntent
            ?: return null
    val extras = sbn.notification.extras
    val name = extras.getString(Notification.EXTRA_CONVERSATION_TITLE)
            ?: extras.getString(Notification.EXTRA_TITLE)