Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f586c925 authored by George Mount's avatar George Mount
Browse files

Fix potential NPE in internal isValidTarget method.

Bug 19805383

Change-Id: Ib22d86cca5e1225b12ed39ac988824eeb9c58bbd
parent 9a4cdf5c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -792,6 +792,9 @@ public abstract class Transition implements Cloneable {
     * views are ignored and only the ids are used).
     */
    boolean isValidTarget(View target) {
        if (target == null) {
            return false;
        }
        int targetId = target.getId();
        if (mTargetIdExcludes != null && mTargetIdExcludes.contains(targetId)) {
            return false;