mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-09 12:50:14 +00:00
Fix NPEs
This commit is contained in:
@@ -113,7 +113,8 @@ public class ConversationListItem extends RelativeLayout
|
||||
}
|
||||
|
||||
public void unbind() {
|
||||
this.recipients.removeListener(this);
|
||||
if (this.recipients != null)
|
||||
this.recipients.removeListener(this);
|
||||
}
|
||||
|
||||
private void initializeContactWidgetVisibility() {
|
||||
|
@@ -111,8 +111,10 @@ public class KeyExchangeProcessor {
|
||||
|
||||
sessionRecord.save();
|
||||
|
||||
DatabaseFactory.getIdentityDatabase(context)
|
||||
.saveIdentity(masterSecret, recipient, message.getIdentityKey());
|
||||
if (message.hasIdentityKey()) {
|
||||
DatabaseFactory.getIdentityDatabase(context)
|
||||
.saveIdentity(masterSecret, recipient, message.getIdentityKey());
|
||||
}
|
||||
|
||||
DecryptingQueue.scheduleRogueMessages(context, masterSecret, recipient);
|
||||
|
||||
|
Reference in New Issue
Block a user