fix npe
This commit is contained in:
parent
ee641f3008
commit
27639c1832
|
@ -173,8 +173,8 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A
|
|||
JsonElement jsonElement = gson.toJsonTree(kv);
|
||||
TResourceMountApplyDTO resourceMountApplyDTO = gson.fromJson(jsonElement, TResourceMountApplyDTO.class);
|
||||
logger.error(JSONObject.toJSONString(resourceMountApplyDTO));
|
||||
ResourceDTO re = resourceMountApplyDTO.getResourceDTO();
|
||||
if (re.getDeptId() != null) {
|
||||
ResourceDTO re = resourceMountApplyDTO.getResourceDTO() == null ? resourceService.get(resourceMountApplyDTO.getResourceId()) : resourceMountApplyDTO.getResourceDTO();
|
||||
if (re != null && re.getDeptId() != null) {
|
||||
SysDeptDTO deptDTO =
|
||||
sysDeptService.get(re.getDeptId());
|
||||
SysUserDTO userDTO = null;
|
||||
|
|
Loading…
Reference in New Issue