Skip to content

Commit dff6997

Browse files
mcgintymoxie0
authored andcommitted
don't call replace() on null formattedNumber
Fixes signalapp#1397 // FREEBIE
1 parent 5bfe647 commit dff6997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/thoughtcrime/securesms/RegistrationActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public void afterTextChanged(Editable s) {
245245
formattedNumber = countryFormatter.inputDigit(number.charAt(i));
246246
}
247247

248-
if (!s.toString().equals(formattedNumber)) {
248+
if (formattedNumber != null && !s.toString().equals(formattedNumber)) {
249249
s.replace(0, s.length(), formattedNumber);
250250
}
251251
}

0 commit comments

Comments
 (0)