Commit 4193a1f7 by jrochest Committed by Oliver Woodman

Guard against null TrackSelections in updateTrackSelectionPlaybackSpeed.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=176629070
parent e575af3a
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment