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
This commit is contained in:
Tracy Zhou committed 2022-03-31 21:46:47 -07:00
1 parent bb75f59792
commit b5f7e4fc19
1 file changed
+1 -1
@@ -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;