forked from mirror/monocles_chat_clean
Optimize fix NPE
This commit is contained in:
parent
00b8958381
commit
fe81e690c9
1 changed files with 2 additions and 4 deletions
|
@ -682,10 +682,8 @@ public class Message extends AbstractEntity implements AvatarService.Avatarable
|
|||
if (this.payloads == null) return null;
|
||||
|
||||
for (Element el : this.payloads) {
|
||||
if (el.getName() != null && el.getNamespace() != null) {
|
||||
if (el.getName().equals("thread") && el.getNamespace().equals("jabber:client")) {
|
||||
return el;
|
||||
}
|
||||
if ("thread".equals(el.getName()) && "jabber:client".equals(el.getNamespace())) {
|
||||
return el;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue