mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-27 07:24:13 +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();
|
final boolean participating = conversation.getMode() == Conversational.MODE_SINGLE || conversation.getMucOptions().participating();
|
||||||
if (this.conversation.getStatus() != Conversation.STATUS_ARCHIVED &&
|
if (this.conversation.getStatus() != Conversation.STATUS_ARCHIVED &&
|
||||||
participating &&
|
participating &&
|
||||||
this.conversation.setNextMessage(msg) &&
|
this.conversation.setNextMessage(msg) && activity != null) {
|
||||||
Objects.nonNull(activity.xmppConnectionService)) {
|
activity.xmppConnectionService.updateConversation(this.conversation);
|
||||||
this.activity.xmppConnectionService.updateConversation(this.conversation);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue