Explorar o código

服务商页面BUG处理

anderx %!s(int64=7) %!d(string=hai) anos
pai
achega
6d61c55b75

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

@@ -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);