Fix crash when showing this thread only and then send a message

This commit is contained in:
Arne 2024-09-13 22:12:50 +02:00
parent b69791cf12
commit 3fdc3fd2a6

View file

@ -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;
}
}
}