Merge "Avoid null pointer exception when calling NotificationShadeWindowControllerImpl#dump" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-04-16 11:35:57 +00:00
committed by Android (Google) Code Review

View File

@@ -666,7 +666,9 @@ public class NotificationShadeWindowControllerImpl implements NotificationShadeW
pw.println(TAG + ":");
pw.println(" mKeyguardDisplayMode=" + mKeyguardDisplayMode);
pw.println(mCurrentState);
mNotificationShadeView.getViewRootImpl().dump(" ", pw);
if (mNotificationShadeView != null && mNotificationShadeView.getViewRootImpl() != null) {
mNotificationShadeView.getViewRootImpl().dump(" ", pw);
}
}
@Override