Solve NPE

This commit is contained in:
Stephen Paul Weber 2022-03-28 18:09:48 -05:00
parent 0ba3cbb99c
commit e0e088479c
No known key found for this signature in database
GPG Key ID: D11C2911CE519CDE
1 changed files with 1 additions and 0 deletions

View File

@ -453,6 +453,7 @@ public class EnterJidDialog extends DialogFragment implements OnBackendConnected
binding.jidLayout.setHint(this.gateways.get(i-1).second);
String type = getType(i);
if (type == null) type = "";
if (type.equals("pstn") || type.equals("sms")) {
binding.jid.setInputType(InputType.TYPE_CLASS_PHONE);
} else if (type.equals("email") || type.equals("sip")) {