Skip to content

Commit af75521

Browse files
ListHelper.getFilteredAudioStreams short circuit on empty list
1 parent f3c20d4 commit af75521

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/util/ListHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public static boolean isHighResolutionSelected(final String selectedResolution,
293293
public static List<AudioStream> getFilteredAudioStreams(
294294
@NonNull final Context context,
295295
@Nullable final List<AudioStream> audioStreams) {
296-
if (audioStreams == null) {
296+
if (audioStreams == null || audioStreams.isEmpty()) {
297297
return Collections.emptyList();
298298
}
299299

0 commit comments

Comments
 (0)