File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
core/sdk-core/src/main/java/software/amazon/awssdk/core/client/builder Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -329,13 +329,16 @@ private RequestCompressionConfiguration resolveRequestCompressionConfiguration()
329
329
Integer minCompressionThreshold = null ;
330
330
331
331
// Client level
332
- RequestCompressionConfiguration clientConfig =
333
- clientOverrideConfiguration .requestCompressionConfiguration ().orElse (null );
334
- if (clientConfig != null ) {
335
- requestCompressionEnabled = clientConfig .requestCompressionEnabled ();
336
- minCompressionThreshold = clientConfig .minimumCompressionThresholdInBytes ();
332
+ if (clientOverrideConfiguration != null ) {
333
+ RequestCompressionConfiguration clientConfig =
334
+ clientOverrideConfiguration .requestCompressionConfiguration ().orElse (null );
335
+ if (clientConfig != null ) {
336
+ requestCompressionEnabled = clientConfig .requestCompressionEnabled ();
337
+ minCompressionThreshold = clientConfig .minimumCompressionThresholdInBytes ();
338
+ }
337
339
}
338
340
341
+
339
342
// Env level
340
343
if (requestCompressionEnabled == null ) {
341
344
Optional <Boolean > systemSetting = SdkSystemSetting .AWS_DISABLE_REQUEST_COMPRESSION .getBooleanValue ();
You can’t perform that action at this time.
0 commit comments