avoid potential NPE

parent 8b7d6848
...@@ -71,7 +71,7 @@ public class FeignContentGzipEncodingInterceptor extends BaseRequestInterceptor ...@@ -71,7 +71,7 @@ public class FeignContentGzipEncodingInterceptor extends BaseRequestInterceptor
private boolean contentLengthExceedThreshold(Collection<String> contentLength) { private boolean contentLengthExceedThreshold(Collection<String> contentLength) {
try { try {
if (contentLength.size() != 1) { if (contentLength == null || contentLength.size() != 1) {
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment