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
1 changed files with 1 additions and 1 deletions

View File

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