Merge "Avoid null pointer exception when calling NotificationShadeWindowControllerImpl#dump"

This commit is contained in:
TreeHugger Robot
2021-04-15 16:21:55 +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