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 a13ad935..3f841f4f 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 @@ -422,7 +422,7 @@ public class ResourceServiceImpl extends CrudServiceImpl() { { - put("count", dataResource.get("rows") + ""); + put("count", null == dataResource ? "0" : dataResource.get("rows") + ""); put("type", "数据资源"); } });