mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-15 22:22:22 +01:00
Fix crash when showing this thread only and then send a message
This commit is contained in:
parent
b69791cf12
commit
3fdc3fd2a6
1 changed files with 4 additions and 2 deletions
|
@ -685,8 +685,10 @@ public class Message extends AbstractEntity implements AvatarService.Avatarable
|
|||
if (this.payloads == null) return null;
|
||||
|
||||
for (Element el : this.payloads) {
|
||||
if (el.getName().equals("thread") && el.getNamespace().equals("jabber:client")) {
|
||||
return el;
|
||||
if (el.getName() != null && el.getNamespace() != null) {
|
||||
if (el.getName().equals("thread") && el.getNamespace().equals("jabber:client")) {
|
||||
return el;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue