mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-09 06:25:07 +00:00
NPE during ES startup when using S3 gateway with the europe region specified, closes #659.
This commit is contained in:
parent
b8c644cab5
commit
05283c7f6d
@ -94,7 +94,9 @@ public class AwsEc2Service extends AbstractLifecycleComponent<AwsEc2Service> {
|
|||||||
} else {
|
} else {
|
||||||
throw new ElasticSearchIllegalArgumentException("No automatic endpoint could be derived from region [" + region + "]");
|
throw new ElasticSearchIllegalArgumentException("No automatic endpoint could be derived from region [" + region + "]");
|
||||||
}
|
}
|
||||||
client.setEndpoint(endpoint);
|
if (endpoint != null) {
|
||||||
|
client.setEndpoint(endpoint);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.client;
|
return this.client;
|
||||||
|
@ -94,7 +94,9 @@ public class AwsS3Service extends AbstractLifecycleComponent<AwsS3Service> {
|
|||||||
} else {
|
} else {
|
||||||
throw new ElasticSearchIllegalArgumentException("No automatic endpoint could be derived from region [" + region + "]");
|
throw new ElasticSearchIllegalArgumentException("No automatic endpoint could be derived from region [" + region + "]");
|
||||||
}
|
}
|
||||||
client.setEndpoint(endpoint);
|
if (endpoint != null) {
|
||||||
|
client.setEndpoint(endpoint);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.client;
|
return this.client;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user