fix(S3): only set Endpoint if not null
This commit is contained in:
parent
c99ff2f190
commit
47b31fcd7d
@ -30,7 +30,9 @@ class S3ClientFactory {
|
||||
}
|
||||
|
||||
AmazonS3Client client = new AmazonS3Client(new BasicAWSCredentials(decrypt(cloud.accessKey(), context), decrypt(cloud.secretKey(), context)), region);
|
||||
client.setEndpoint(cloud.s3Endpoint());
|
||||
if (cloud.s3Endpoint() != null) {
|
||||
client.setEndpoint(cloud.s3Endpoint());
|
||||
}
|
||||
return client;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user