Merge "Fix npe in FrameHandler" into tm-dev

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