[power-matchmaker] r2766 committed - Bug fix to postal code comparison.

0 views
Skip to first unread message

power-ma...@googlecode.com

unread,
Jan 26, 2011, 4:41:56 PM1/26/11
to matchmake...@googlegroups.com
Revision: 2766
Author: fridgebuzz
Date: Wed Jan 26 13:41:06 2011
Log: Bug fix to postal code comparison.
http://code.google.com/p/power-matchmaker/source/detail?r=2766

Modified:

/branches/0.9.7/src/ca/sqlpower/matchmaker/address/steps/ValidateStepUtil.java

=======================================
---
/branches/0.9.7/src/ca/sqlpower/matchmaker/address/steps/ValidateStepUtil.java
Tue Jan 25 13:49:30 2011
+++
/branches/0.9.7/src/ca/sqlpower/matchmaker/address/steps/ValidateStepUtil.java
Wed Jan 26 13:41:06 2011
@@ -124,6 +124,8 @@
* @return
*/
public static boolean equivalentPostalCodes(String code1, String
code2) {
+ if (code1 == null) code1 = "";
+ if (code2 == null) code2 = "";

Matcher matcher1 = postalCodePattern.matcher(code1.trim());
Matcher matcher2 = postalCodePattern.matcher(code2.trim());

Reply all
Reply to author
Forward
0 new messages