Quick fix for NullPointerException 211713013

Test: Manually tested
Fix: 211713013
Change-Id: Ie701bee61a69d88cc9fce12c9d001a52f30578c4
This commit is contained in:
Sebastian Franco
2021-12-30 11:51:37 -06:00
committed by Winson Chung
parent 5a1d0103e4
commit 76f9cda458

View File

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