Merge "Quick fix for NullPointerException 211713013" into sc-v2-dev am: b7f37cd797 am: 19516a0496

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16569980

Change-Id: I4842f7c2e4e74a29f6b1868838dfb6d9d3b49158
This commit is contained in:
TreeHugger Robot
2022-01-06 00:31:28 +00:00
committed by Automerger Merge Worker

View File

@@ -282,7 +282,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();
}