From 9426860495e127ce134121ff621f98cf54e26976 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Tue, 12 Jul 2022 14:56:31 +0800 Subject: [PATCH] npe --- .../java/io/renren/common/controller/CensusController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()); + } } }); });