Handle normalization of a "null" phone number.

Bug: 14900155
Change-Id: I1c4c5c6dec4c4c470b436102c72a7476d3d5237c
This commit is contained in:
Andrew Lee
2014-05-14 12:13:02 -07:00
parent bee74c2b47
commit b31c310fcf

View File

@@ -1492,6 +1492,10 @@ public class PhoneNumberUtils
* @return the normalized number.
*/
public static String normalizeNumber(String phoneNumber) {
if (TextUtils.isEmpty(phoneNumber)) {
return "";
}
StringBuilder sb = new StringBuilder();
int len = phoneNumber.length();
for (int i = 0; i < len; i++) {