Guard against null TrackSelections in updateTrackSelectionPlaybackSpeed.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=176629070
This commit is contained in:
jrochest 2017-11-22 01:49:47 -08:00 committed by Oliver Woodman
parent e575af3ac3
commit 4193a1f705

View file

@ -941,7 +941,9 @@ import java.io.IOException;
while (periodHolder != null) {
TrackSelection[] trackSelections = periodHolder.trackSelectorResult.selections.getAll();
for (TrackSelection trackSelection : trackSelections) {
trackSelection.onPlaybackSpeed(playbackSpeed);
if (trackSelection != null) {
trackSelection.onPlaybackSpeed(playbackSpeed);
}
}
periodHolder = periodHolder.next;
}