mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-26 23:14:11 +01:00
Fix NPE
This commit is contained in:
parent
f70c9e7549
commit
e4f3b148b6
1 changed files with 2 additions and 3 deletions
|
@ -4744,9 +4744,8 @@ public class ConversationFragment extends XmppFragment
|
|||
final boolean participating = conversation.getMode() == Conversational.MODE_SINGLE || conversation.getMucOptions().participating();
|
||||
if (this.conversation.getStatus() != Conversation.STATUS_ARCHIVED &&
|
||||
participating &&
|
||||
this.conversation.setNextMessage(msg) &&
|
||||
Objects.nonNull(activity.xmppConnectionService)) {
|
||||
this.activity.xmppConnectionService.updateConversation(this.conversation);
|
||||
this.conversation.setNextMessage(msg) && activity != null) {
|
||||
activity.xmppConnectionService.updateConversation(this.conversation);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue