avoid potential NPE

This commit is contained in:
Spencer Gibb
2016-12-08 12:25:06 -07:00
parent 8b7d6848b3
commit ec80797694

View File

@@ -71,7 +71,7 @@ public class FeignContentGzipEncodingInterceptor extends BaseRequestInterceptor
private boolean contentLengthExceedThreshold(Collection<String> contentLength) {
try {
if (contentLength.size() != 1) {
if (contentLength == null || contentLength.size() != 1) {
return false;
}