From ffb0009a44da2f5c198421c81523a43fbd175133 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Tue, 27 Dec 2022 13:47:30 +0800 Subject: [PATCH] npe --- .../modules/resource/service/impl/ResourceServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java index d3856978..b68710d9 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java @@ -2949,7 +2949,7 @@ public class ResourceServiceImpl extends CrudServiceImpl lcSelectCensusApplyTable(Map params) { - if (params.get("region") != null && !"250000".equals(params.get("region").toString())) { + if (params.containsKey("region") && params.get("region") != null && !"250000".equals(params.get("region").toString())) { logger.error("非市级单位无法查浪潮数据"); return new ArrayList<>(); }