健康评估报告

This commit is contained in:
xiezhijun
2021-02-27 16:55:31 +08:00
parent 488a149ec3
commit 5de80fd57f
11 changed files with 263 additions and 45 deletions

View File

@ -416,7 +416,7 @@ public class ReflectUtils
Field field = object.getClass().getDeclaredField(fieldName);
//设置对象的访问权限保证对private的属性的访问
field.setAccessible(true);
return field.get(object).toString();
return field.get(object) == null ? "" : field.get(object).toString();
} catch (Exception e) {
return "";
}