Fix NPE
This commit is contained in:
parent
5ba4e0db44
commit
3e4799979e
|
@ -105,6 +105,12 @@ public class ConnectionService extends android.telecom.ConnectionService {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (xmppConnectionService == null) {
|
||||||
|
return Connection.createFailedConnection(
|
||||||
|
new DisconnectCause(DisconnectCause.ERROR)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (xmppConnectionService.getJingleConnectionManager().isBusy() != null) {
|
if (xmppConnectionService.getJingleConnectionManager().isBusy() != null) {
|
||||||
return Connection.createFailedConnection(
|
return Connection.createFailedConnection(
|
||||||
new DisconnectCause(DisconnectCause.BUSY)
|
new DisconnectCause(DisconnectCause.BUSY)
|
||||||
|
|
Loading…
Reference in a new issue