Commit a168e359 authored by zhangsen's avatar zhangsen

空指针修改

parent fd1e726d
...@@ -595,7 +595,7 @@ public class UserController extends AbstractBaseController { ...@@ -595,7 +595,7 @@ public class UserController extends AbstractBaseController {
map.put("parentId", map.get("parentId") + ""); map.put("parentId", map.get("parentId") + "");
listCompanyModel.add(map); listCompanyModel.add(map);
long key = Long.valueOf(map.get("sequenceNbr").toString()); long key = Long.valueOf(map.get("sequenceNbr").toString());
List<DepartmentModel> listdep = mapDepartments.get(key); List<DepartmentModel> listdep = mapDepartments.getOrDefault(key,new ArrayList<>());
List<Map<String, Object>> dep = new ArrayList(); List<Map<String, Object>> dep = new ArrayList();
for (DepartmentModel departmentModel : listdep) { for (DepartmentModel departmentModel : listdep) {
if (departmentModel != null) { if (departmentModel != null) {
......
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