Fix string comparison for action
Closes #28628 Signed-off-by: ali dandach <alidandach1995@gmail.com>
This commit is contained in:
parent
242063dc74
commit
eb77220cca
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue