am 07a07e14: am 382225af: Merge "Null check when reconstituting legacy icon data." into mnc-dev

* commit '07a07e14972cf3bd2cc2e9ce8ac8fde28e251302':
  Null check when reconstituting legacy icon data.
This commit is contained in:
Dan Sandler
2015-06-10 18:27:56 +00:00
committed by Android Git Automerger

View File

@@ -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();
}