Skip to content

Commit

Permalink
Merge pull request #1072 from thomasdarimont/issue/gh-1071-use-object…
Browse files Browse the repository at this point in the history
…-utils-to-compare-authflowexec-prios

Use null-safe comparison in  AuthenticationExecutionExportRepresentationComparator
  • Loading branch information
jonasvoelcker authored Jun 25, 2024
2 parents cf28b9d + ce5cf71 commit 9ecde84
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

package de.adorsys.keycloak.config.model;

import org.apache.commons.lang3.ObjectUtils;
import org.keycloak.representations.idm.AuthenticationExecutionExportRepresentation;
import org.keycloak.representations.idm.AuthenticationFlowRepresentation;
import org.springframework.stereotype.Component;
Expand Down Expand Up @@ -55,7 +56,7 @@ public int compare(
AuthenticationExecutionExportRepresentation first,
AuthenticationExecutionExportRepresentation second
) {
return first.getPriority() - second.getPriority();
return ObjectUtils.compare(first.getPriority(), second.getPriority());
}
}
}

0 comments on commit 9ecde84

Please sign in to comment.