Fix NPEs
This commit is contained in:
parent
e00914c977
commit
288b416988
2 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue