Merge "Fix NPE from startNewTransition" into tm-qpr-dev

This commit is contained in:
Riddle Hsu
2022-12-01 07:13:44 +00:00
committed by Android (Google) Code Review

View File

@@ -228,7 +228,8 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
}
@Nullable
static Transition fromBinder(@NonNull IBinder token) {
static Transition fromBinder(@Nullable IBinder token) {
if (token == null) return null;
try {
return ((Token) token).mTransition.get();
} catch (ClassCastException e) {