diff --git a/model/storage-services/src/main/java/org/keycloak/services/resources/admin/UserStorageProviderResource.java b/model/storage-services/src/main/java/org/keycloak/services/resources/admin/UserStorageProviderResource.java index 0babddb4f2..3b6f9a9165 100644 --- a/model/storage-services/src/main/java/org/keycloak/services/resources/admin/UserStorageProviderResource.java +++ b/model/storage-services/src/main/java/org/keycloak/services/resources/admin/UserStorageProviderResource.java @@ -163,7 +163,7 @@ public class UserStorageProviderResource { String errorMsg = getErrorCode(e); throw ErrorResponse.error(errorMsg, Response.Status.BAD_REQUEST); } - } else if (action == null || action == "") { + } else if (action == null || action.isEmpty()) { logger.debug("Missing action"); throw new BadRequestException("Missing action"); } else {