diff --git a/renren-admin/src/main/java/io/renren/modules/resourceMountApply/controller/TResourceMountApplyController.java b/renren-admin/src/main/java/io/renren/modules/resourceMountApply/controller/TResourceMountApplyController.java index 1464eed4..30b216f2 100644 --- a/renren-admin/src/main/java/io/renren/modules/resourceMountApply/controller/TResourceMountApplyController.java +++ b/renren-admin/src/main/java/io/renren/modules/resourceMountApply/controller/TResourceMountApplyController.java @@ -68,7 +68,7 @@ public class TResourceMountApplyController { // @RequiresPermissions("resourceMountApply:tresourcemountapply:info") public Result get(@PathVariable("id") Long id) { TResourceMountApplyDTO data = tResourceMountApplyService.get(id); - if (data.getDeptId() != null) { + if (data != null && data.getDeptId() != null) { SysDeptDTO sysDeptDTO = sysDeptService.get(Long.valueOf(data.getDeptId())); if (sysDeptDTO != null) { ResourceDTO resourceDTO = data.getResourceDTO();