fix(Mock测试): 修复Mock测试没有校验空参数产生的报错问题
修复Mock测试没有校验空参数产生的报错问题
This commit is contained in:
parent
32c06ce462
commit
ca9fdcc355
|
@ -587,7 +587,11 @@ public class MockApiUtils {
|
|||
if (charEncoding == null) {
|
||||
charEncoding = "UTF-8";
|
||||
}
|
||||
return new String(buffer, charEncoding);
|
||||
if(buffer == null){
|
||||
return "";
|
||||
}else {
|
||||
return new String(buffer, charEncoding);
|
||||
}
|
||||
}
|
||||
|
||||
private static String readXml(HttpServletRequest request) {
|
||||
|
|
Loading…
Reference in New Issue