mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Prevent NPE in PhoneNumberFormatter.
This commit is contained in:
committed by
Greyson Parrelli
parent
9d5a52a980
commit
e55834d523
@@ -147,7 +147,7 @@ public class PhoneNumberFormatter {
|
||||
|
||||
return "+" +
|
||||
countryCode.replaceAll("[^0-9]", "").replaceAll("^0*", "") +
|
||||
number.replaceAll("[^0-9]", "");
|
||||
(number != null ? number.replaceAll("[^0-9]", "") : "");
|
||||
}
|
||||
|
||||
public static String getInternationalFormatFromE164(String e164number) {
|
||||
|
||||
Reference in New Issue
Block a user