Bad number can also cause IllegalArgumentException
This commit is contained in:
parent
e6a5b4288e
commit
e02dee8c01
|
@ -276,7 +276,7 @@ public class EnterJidDialog extends DialogFragment implements OnBackendConnected
|
|||
if (type != null && (type.equals("pstn") || type.equals("sms"))) {
|
||||
try {
|
||||
binding.jid.setText(PhoneNumberUtilWrapper.normalize(getActivity(), binding.jid.getText().toString()));
|
||||
} catch (NumberParseException | NullPointerException e) { }
|
||||
} catch (NumberParseException | IllegalArgumentException | NullPointerException e) { }
|
||||
}
|
||||
|
||||
if (p == null) {
|
||||
|
|
Loading…
Reference in New Issue