Checking amazonDynamoDBEndpoint string is not empty

This commit is contained in:
Chris Anatalio 2016-10-13 07:59:24 -07:00 committed by GitHub
parent e95d1e2908
commit 427b012ee4
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ public class DynamoDBConfig {
@Bean
public AmazonDynamoDB amazonDynamoDB() {
AmazonDynamoDB amazonDynamoDB = new AmazonDynamoDBClient(amazonAWSCredentials());
if (StringUtils.isEmpty(amazonDynamoDBEndpoint)) {
if (!StringUtils.isEmpty(amazonDynamoDBEndpoint)) {
amazonDynamoDB.setEndpoint(amazonDynamoDBEndpoint);
}
return amazonDynamoDB;