Skip to content

Commit

Permalink
Check null check to KubernetesVersionPriority#sortByPriority
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo42 committed Mar 10, 2024
1 parent af8777b commit 1d9bea3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ private static List<Version> sortByPriority(List<String> versions) {
* @see KubernetesVersionPriority
*/
public static <T> List<T> sortByPriority(List<T> resources, Function<T, String> versionProvider) {
Utils.checkNotNull(versionProvider, "versionProvider function can't be null");
if (resources == null || resources.isEmpty()) {
return Collections.emptyList();
}
Expand Down

0 comments on commit 1d9bea3

Please sign in to comment.