diff --git a/renren-admin/src/main/java/io/renren/common/controller/CensusController.java b/renren-admin/src/main/java/io/renren/common/controller/CensusController.java index f911b3da..e636b85b 100644 --- a/renren-admin/src/main/java/io/renren/common/controller/CensusController.java +++ b/renren-admin/src/main/java/io/renren/common/controller/CensusController.java @@ -218,7 +218,9 @@ public class CensusController { { put("provide", type); put("deptId", deptId); - put("deptName", deptDTO.getName()); + if (deptDTO != null) { + put("deptName", deptDTO.getName()); + } } }); });