瀏覽代碼

页面处理修复

anderx 7 年之前
父節點
當前提交
d504ffca54
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/main/java/com/goafanti/common/controller/PublicController.java

+ 3 - 1
src/main/java/com/goafanti/common/controller/PublicController.java

@@ -760,7 +760,9 @@ public class PublicController extends BaseController {
 		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) {
-			j.setIntroduce(j.getIntroduce().replaceAll("\\<.*?>", ""));
+			if (j.getIntroduce()!=null) {
+				j.setIntroduce(j.getIntroduce().replaceAll("\\<.*?>", ""));
+			}
 		}
 		res.setData(pagination);
 		return res;