Check for Shelf icon Nullness.

It's possible for it to be null, from other checks in the code.

Bug: None
Test: Build
Change-Id: I2b9c46690b608a97f6e323c3060641d1fda13c5d
This commit is contained in:
Ben Lin
2022-01-20 19:14:36 -08:00
parent 4d23125271
commit 15f3679b3b

View File

@@ -349,6 +349,9 @@ public class NotificationIconAreaController implements
}
private void updateShelfIcons() {
if (mShelfIcons == null) {
return;
}
updateIconsForLayout(entry -> entry.getIcons().getShelfIcon(), mShelfIcons,
true /* showAmbient */,
true /* showLowPriority */,