Merge "Quick fix for NullPointerException 211713013" into sc-v2-dev

This commit is contained in:
TreeHugger Robot
2022-01-06 00:05:20 +00:00
committed by Android (Google) Code Review

View File

@@ -278,7 +278,9 @@ public class RemoteAnimationTargetCompat {
* @see SurfaceControl#release() * @see SurfaceControl#release()
*/ */
public void release() { public void release() {
if (leash.mSurfaceControl != null) {
leash.mSurfaceControl.release(); leash.mSurfaceControl.release();
}
if (mStartLeash != null) { if (mStartLeash != null) {
mStartLeash.release(); mStartLeash.release();
} }