|
@@ -206,7 +206,7 @@ public abstract class CloudClientSupport {
|
|
if (INTERFACE_LOG.isDebugEnabled() && getLogProperties().isNormalResponseLogEnable()) {
|
|
if (INTERFACE_LOG.isDebugEnabled() && getLogProperties().isNormalResponseLogEnable()) {
|
|
String respEntityBody = respEntity.getBody();
|
|
String respEntityBody = respEntity.getBody();
|
|
int responseJsonMaxSize = getLogProperties().getResponseLogJsonMaxSize();
|
|
int responseJsonMaxSize = getLogProperties().getResponseLogJsonMaxSize();
|
|
- if (respEntityBody.length() > responseJsonMaxSize) {
|
|
|
|
|
|
+ if (null != respEntityBody && respEntityBody.length() > responseJsonMaxSize) {
|
|
INTERFACE_LOG.debug("[CALL-RESP]. response= too large");
|
|
INTERFACE_LOG.debug("[CALL-RESP]. response= too large");
|
|
} else {
|
|
} else {
|
|
INTERFACE_LOG.debug("[CALL-RESP]. response=" + respEntityBody);
|
|
INTERFACE_LOG.debug("[CALL-RESP]. response=" + respEntityBody);
|