Browse Source

项目变更通知BUG修复

anderx 7 years ago
parent
commit
f07ee49825

+ 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();