Merge "Fix potential NPE in internal isValidTarget method." into mnc-dev

This commit is contained in:
George Mount
2015-05-04 22:08:02 +00:00
committed by Android (Google) Code Review

View File

@@ -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;