diff --git a/src/main/java/neatlogic/module/rdm/api/app/GetAppApi.java b/src/main/java/neatlogic/module/rdm/api/app/GetAppApi.java index 070f1d8658c6dd1b0e45167c2e5343cc56fb5ae5..d0a896319a56f798b8562951054049d6d33e6092 100644 --- a/src/main/java/neatlogic/module/rdm/api/app/GetAppApi.java +++ b/src/main/java/neatlogic/module/rdm/api/app/GetAppApi.java @@ -56,13 +56,15 @@ public class GetAppApi extends PrivateApiComponentBase { @Override public Object myDoService(JSONObject paramObj) { AppVo appVo = appMapper.getAppById(paramObj.getLong("id")); - Integer needSystemAttr = paramObj.getInteger("needSystemAttr"); - if (needSystemAttr != null && needSystemAttr.equals(1)) { - List systemAttrList = SystemAttrType.getSystemAttrList(appVo.getId()); - if (appVo.getAttrList() != null) { - appVo.getAttrList().addAll(0, systemAttrList); - } else { - appVo.setAttrList(systemAttrList); + if (appVo != null) { + Integer needSystemAttr = paramObj.getInteger("needSystemAttr"); + if (needSystemAttr != null && needSystemAttr.equals(1)) { + List systemAttrList = SystemAttrType.getSystemAttrList(appVo.getId()); + if (appVo.getAttrList() != null) { + appVo.getAttrList().addAll(0, systemAttrList); + } else { + appVo.setAttrList(systemAttrList); + } } } return appVo;