Commit fbc5e4a2 by 吴善钰

积分串并接口,添加null判断

parent 91b9fbd0
......@@ -103,7 +103,7 @@ public class GwdqfxtjController {
List<AutoTbStAsjforjfcb> list = new ArrayList<>();
String content = gwdqService.RequestUtil(httpclient, post).trim();
System.out.println("content=="+content);
if(!"".equals(content)){
if(null != content && !"".equals(content)){
jsonArray = JSONArray.parseArray(content);
if(jsonArray != null && jsonArray.size() > 0) {
for (int i = 0; i <= jsonArray.size() - 1; i++){
......
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