NPE in getDefaultRequiredActionCaseInsensitively

closes #21123
This commit is contained in:
Douglas Palmer 2023-06-22 13:31:27 -07:00 committed by Pedro Igor
parent 47a36825b4
commit b59faa51d5

View file

@ -311,6 +311,9 @@ public class DefaultRequiredActions {
* of {@link UserModel.RequiredAction}
*/
public static String getDefaultRequiredActionCaseInsensitively(String providerId) {
if (providerId == null) {
return null;
}
String upperCase = providerId.toUpperCase();
if (REQUIRED_ACTIONS.contains(upperCase)) {
return upperCase;