Commit f8ce8b33 by lzxry

空指针异常

parent b9c33a3e
......@@ -325,8 +325,8 @@ public class ADIAccountServiceImpl implements ADIAccountService {
ADIUser adiUser1 =null;
ADIUser adiUser2 =null;
ADIUser adiUser1 = new ADIUser();
ADIUser adiUser2 = new ADIUser();
ADIUser adiUser = new ADIUser();
try {
......@@ -338,7 +338,6 @@ public class ADIAccountServiceImpl implements ADIAccountService {
if(!StringUtils.isEmpty(content)){
JSONArray jsonArray = new JSONArray(content);
JSONObject jsonObject = jsonArray.getJSONObject(0);
adiUser1 = new ADIUser();
adiUser1.setCompany(jsonObject.getString("company"));
adiUser1.setAccountStatus(jsonObject.getString("accountStatus"));
adiUser1.setSendStatus(jsonObject.getString("sendStatus"));
......@@ -355,7 +354,6 @@ public class ADIAccountServiceImpl implements ADIAccountService {
if(!StringUtils.isEmpty(content)){
JSONArray jsonArray = new JSONArray(content);
JSONObject jsonObject = jsonArray.getJSONObject(0);
adiUser2 = new ADIUser();
adiUser2.setCompany(jsonObject.getString("company"));
adiUser2.setAccountStatus(jsonObject.getString("accountStatus"));
adiUser2.setSendStatus(jsonObject.getString("sendStatus"));
......
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