additional null check in case to is null

This commit is contained in:
Daniel Gultsch 2020-04-23 20:11:45 +02:00
parent 80cac3bd69
commit 96f6ae2b49

View file

@ -174,7 +174,7 @@ public class JingleConnectionManager extends AbstractConnectionManager {
final boolean fromSelf = from.asBareJid().equals(account.getJid().asBareJid()); final boolean fromSelf = from.asBareJid().equals(account.getJid().asBareJid());
final AbstractJingleConnection.Id id; final AbstractJingleConnection.Id id;
if (fromSelf) { if (fromSelf) {
if (to.isFullJid()) { if (to != null && to.isFullJid()) {
id = AbstractJingleConnection.Id.of(account, to, sessionId); id = AbstractJingleConnection.Id.of(account, to, sessionId);
} else { } else {
return; return;