@@ -759,9 +759,11 @@ public class PublicController extends BaseController {
Result res = new Result();
Pagination<JtBusinessProjectResult> pagination=jtBusinessService.getProjects(null,null, null, null, pageSize, pageNo, 0, 2, null, null, 0, 0, uid);
List<JtBusinessProjectResult> list=(List<JtBusinessProjectResult>) pagination.getList();
- for (JtBusinessProjectResult j : list) {
- if (j.getIntroduce()!=null) {
- j.setIntroduce(j.getIntroduce().replaceAll("\\<.*?>", ""));
+ if (list!=null ) {
+ for (JtBusinessProjectResult j : list) {
+ if (j!=null&&j.getIntroduce()!=null) {
+ j.setIntroduce(j.getIntroduce().replaceAll("\\<.*?>", ""));
+ }
}
res.setData(pagination);