Merge "Quick fix for NullPointerException 211713013" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b7f37cd797
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user