From b5f7e4fc19d2de93cced94a746f68d11bdb79619 Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Thu, 31 Mar 2022 21:46:47 -0700 Subject: [PATCH] Fix npe in FrameHandler Previously we check if the view root is null, but after ag/16308550 we no longer do so Fixes: 208657242 Test: N/A Change-Id: I0bb4a1b26ca8b201393587e7d0d922b7d4e08419 --- quickstep/src/com/android/quickstep/ViewUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/ViewUtils.java b/quickstep/src/com/android/quickstep/ViewUtils.java index ab26d15284..1fef544e3e 100644 --- a/quickstep/src/com/android/quickstep/ViewUtils.java +++ b/quickstep/src/com/android/quickstep/ViewUtils.java @@ -83,7 +83,7 @@ public class ViewUtils { } private boolean schedule() { - if (mViewRoot.getView() != null) { + if (mViewRoot != null && mViewRoot.getView() != null) { mViewRoot.registerRtFrameCallback(this); mViewRoot.getView().invalidate(); return true;