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

Commit 99a37f13 authored by Dan Sandler's avatar Dan Sandler
Browse files

Null check when reconstituting legacy icon data.

Bug: 21353798
Change-Id: I07f6c7310d4589128b175759f737cf902585f97e
parent 6236a820
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -646,7 +646,7 @@ public abstract class NotificationListenerService extends Service {
    private void createLegacyIconExtras(Notification n) {
        Icon smallIcon = n.getSmallIcon();
        Icon largeIcon = n.getLargeIcon();
        if (smallIcon.getType() == Icon.TYPE_RESOURCE) {
        if (smallIcon != null && smallIcon.getType() == Icon.TYPE_RESOURCE) {
            n.extras.putInt(Notification.EXTRA_SMALL_ICON, smallIcon.getResId());
            n.icon = smallIcon.getResId();
        }