Merge pull request #10909 from Stypox/fix-getAudioTrackType-null

Fix not considering nullability when comparing getAudioTrackType
This commit is contained in:
Stypox 2024-03-28 13:47:12 +01:00 committed by GitHub
commit 81220f90d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -874,6 +874,7 @@ public final class ListHelper {
return Comparator.comparing(AudioStream::getAudioLocale, Comparator.nullsLast(
Comparator.comparing(locale -> locale.getDisplayName(appLoc))))
.thenComparing(AudioStream::getAudioTrackType);
.thenComparing(AudioStream::getAudioTrackType, Comparator.nullsLast(
Comparator.naturalOrder()));
}
}