Bad number can also cause IllegalArgumentException

This commit is contained in:
Stephen Paul Weber 2022-03-11 23:00:49 -05:00
parent e6a5b4288e
commit e02dee8c01
No known key found for this signature in database
GPG key ID: D11C2911CE519CDE

View file

@ -276,7 +276,7 @@ public class EnterJidDialog extends DialogFragment implements OnBackendConnected
if (type != null && (type.equals("pstn") || type.equals("sms"))) { if (type != null && (type.equals("pstn") || type.equals("sms"))) {
try { try {
binding.jid.setText(PhoneNumberUtilWrapper.normalize(getActivity(), binding.jid.getText().toString())); binding.jid.setText(PhoneNumberUtilWrapper.normalize(getActivity(), binding.jid.getText().toString()));
} catch (NumberParseException | NullPointerException e) { } } catch (NumberParseException | IllegalArgumentException | NullPointerException e) { }
} }
if (p == null) { if (p == null) {