Merge "Fix npe in FrameHandler" into tm-dev

This commit is contained in:
Tracy Zhou
2022-04-01 18:10:10 +00:00
committed by Android (Google) Code Review
@@ -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;