mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 17:52:17 -05:00
fixed npe for otr sessions with non contacts
This commit is contained in:
parent
225447f2f5
commit
a0a5ca9585
@ -269,11 +269,15 @@ public class Conversation extends AbstractEntity {
|
|||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
String foreignPresence = this.otrSession.getSessionID().getUserID();
|
String foreignPresence = this.otrSession.getSessionID().getUserID();
|
||||||
if (!getContact().getPresences().containsKey(foreignPresence)) {
|
if (getContact()==null) {
|
||||||
this.resetOtrSession();
|
return true;
|
||||||
return false;
|
} else {
|
||||||
|
if (!getContact().getPresences().containsKey(foreignPresence)) {
|
||||||
|
this.resetOtrSession();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user