commit | b5f7e4fc19d2de93cced94a746f68d11bdb79619 | [log] [tgz] |
---|---|---|
author | Tracy Zhou <tracyzhou@google.com> | Thu Mar 31 21:46:47 2022 -0700 |
committer | Tracy Zhou <tracyzhou@google.com> | Thu Mar 31 21:46:47 2022 -0700 |
tree | b15d092b1509aa70e03fc8e2410da7ece37efb2e | |
parent | bb75f59792f5069abd842f583babb72f4ac527dd [diff] |
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
diff --git a/quickstep/src/com/android/quickstep/ViewUtils.java b/quickstep/src/com/android/quickstep/ViewUtils.java index ab26d15..1fef544 100644 --- a/quickstep/src/com/android/quickstep/ViewUtils.java +++ b/quickstep/src/com/android/quickstep/ViewUtils.java
@@ -83,7 +83,7 @@ } private boolean schedule() { - if (mViewRoot.getView() != null) { + if (mViewRoot != null && mViewRoot.getView() != null) { mViewRoot.registerRtFrameCallback(this); mViewRoot.getView().invalidate(); return true;