diff --git a/litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionSet.java b/litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionSet.java index de4d19ffdb..ff4ef3181e 100644 --- a/litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionSet.java +++ b/litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionSet.java @@ -20,6 +20,7 @@ import com.facebook.litho.animation.AnimationBinding; import java.util.ArrayList; import java.util.List; +import javax.annotation.Nullable; /** A set of {@link Transition}s. */ @Nullsafe(Nullsafe.Mode.LOCAL) @@ -39,7 +40,7 @@ TransitionSet(List children) { } } - private void addChild(Transition child) { + private void addChild(@Nullable Transition child) { if (child instanceof Transition.BaseTransitionUnitsBuilder) { final ArrayList transitions = ((Transition.BaseTransitionUnitsBuilder) child).getTransitionUnits();