Browse Source

空指针处理

Signed-off-by: anderx <312518615@qq.com>
anderx 5 years ago
parent
commit
a89fb28f63
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/goafanti/common/task/ReleaseUserTask.java

+ 2 - 2
src/main/java/com/goafanti/common/task/ReleaseUserTask.java

@@ -61,10 +61,10 @@ public class ReleaseUserTask {
 					if(StringUtils.isNotBlank(u.getId())) {
 						userTmpList = customerServiceImpl.selectWaitReleaseCustomer(u.getId());
 //						userTmpList = customerServiceImpl.selectWaitReleaseCustomer("1");
-							if(!userTmpList.isEmpty())lockUserList.addAll(userTmpList);
+							if(userTmpList!=null&&!userTmpList.isEmpty())lockUserList.addAll(userTmpList);
 							businessTmpList = customerServiceImpl.selectWaitReleaseBusiness(u.getId());
 //						businessTmpList = customerServiceImpl.selectWaitReleaseBusiness("1");
-							if(!businessTmpList.isEmpty())lockBusinessList.addAll(businessTmpList);
+							if(businessTmpList!=null&&!businessTmpList.isEmpty())lockBusinessList.addAll(businessTmpList);
 						}
 				}