Avoid null pointer exception when calling NotificationShadeWindowControllerImpl#dump

Fix: 185470518
Test: manual
Change-Id: I3a345929ed09e895f54622bd151a60f0c9acab31
This commit is contained in:
Philip Junker
2021-04-13 19:31:29 +02:00
parent e2aca0ee46
commit bc2ce2a664

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