Fix string comparison for action

Closes #28628

Signed-off-by: ali dandach <alidandach1995@gmail.com>
This commit is contained in:
ali_dandach 2024-04-11 18:59:57 +03:00 committed by GitHub
parent 242063dc74
commit eb77220cca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -163,7 +163,7 @@ public class UserStorageProviderResource {
String errorMsg = getErrorCode(e); String errorMsg = getErrorCode(e);
throw ErrorResponse.error(errorMsg, Response.Status.BAD_REQUEST); throw ErrorResponse.error(errorMsg, Response.Status.BAD_REQUEST);
} }
} else if (action == null || action == "") { } else if (action == null || action.isEmpty()) {
logger.debug("Missing action"); logger.debug("Missing action");
throw new BadRequestException("Missing action"); throw new BadRequestException("Missing action");
} else { } else {