Merge "Fix NPE in NotificationRemoteInputManager logging" into rvc-dev am: cc40644676
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12013471 Change-Id: I0c030e4248c670c6abb4c30d1e2896db43ac0894
This commit is contained in:
@@ -181,11 +181,11 @@ public class NotificationRemoteInputManager implements Dumpable {
|
||||
return;
|
||||
}
|
||||
ViewParent parent = view.getParent();
|
||||
StatusBarNotification statusBarNotification = entry.getSbn();
|
||||
if (statusBarNotification == null) {
|
||||
if (entry == null) {
|
||||
Log.w(TAG, "Couldn't determine notification for click.");
|
||||
return;
|
||||
}
|
||||
StatusBarNotification statusBarNotification = entry.getSbn();
|
||||
String key = statusBarNotification.getKey();
|
||||
int buttonIndex = -1;
|
||||
// If this is a default template, determine the index of the button.
|
||||
|
||||
Reference in New Issue
Block a user