[282 taxi乘客屏] 空指针判断

This commit is contained in:
wangmingjun
2022-07-20 13:19:51 +08:00
parent 4e5918d1d0
commit e381e49468

View File

@@ -149,8 +149,10 @@ public abstract class BaseSurfaceView extends SurfaceView implements SurfaceHold
getHolder().unlockCanvasAndPost(canvas);
onFrameDrawFinish();
}
handler.postDelayed(this, frameDuration);
if (handler != null){
handler.postDelayed(this, frameDuration);
}
}
}