This commit is contained in:
Stephen Paul Weber 2022-03-28 18:14:02 -05:00
parent e0e088479c
commit 541c90c597
No known key found for this signature in database
GPG key ID: D11C2911CE519CDE

View file

@ -112,6 +112,12 @@ public class ConnectionService extends android.telecom.ConnectionService {
} }
Account account = xmppConnectionService.findAccountByJid(Jid.of(gateway[0])); Account account = xmppConnectionService.findAccountByJid(Jid.of(gateway[0]));
if (account == null) {
return Connection.createFailedConnection(
new DisconnectCause(DisconnectCause.ERROR)
);
}
Jid with = Jid.ofLocalAndDomain(tel, gateway[1]); Jid with = Jid.ofLocalAndDomain(tel, gateway[1]);
CheogramConnection connection = new CheogramConnection(account, with, postDial); CheogramConnection connection = new CheogramConnection(account, with, postDial);