瀏覽代碼

项目变更通知BUG修复

anderx 7 年之前
父節點
當前提交
f07ee49825
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/goafanti/techproject/service/impl/TechProjectServiceImpl.java

+ 1 - 1
src/main/java/com/goafanti/techproject/service/impl/TechProjectServiceImpl.java

@@ -444,7 +444,7 @@ public class TechProjectServiceImpl extends BaseMybatisDao<TechProjectMapper> im
 		String regex = "^(1[1-9][0-9])\\d{8}$";
 		 Pattern p = Pattern.compile(regex);
 		  SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
-		if (null!=a.getContactMobile()) {
+		if (null!=a&&null!=a.getContactMobile()) {
 			Matcher m = p.matcher(a.getContactMobile());
 			if ( m.matches()) {
 			String mobile=a.getContactMobile();