mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 17:52:17 -05:00
don't add users with null nicks to muc user list
This commit is contained in:
parent
6ad4865d96
commit
f3be0d99cc
@ -275,7 +275,7 @@ public class MucOptions {
|
|||||||
User user = new User();
|
User user = new User();
|
||||||
if (x != null) {
|
if (x != null) {
|
||||||
Element item = x.findChild("item");
|
Element item = x.findChild("item");
|
||||||
if (item != null) {
|
if (item != null && name != null) {
|
||||||
user.setName(name);
|
user.setName(name);
|
||||||
user.setAffiliation(item.getAttribute("affiliation"));
|
user.setAffiliation(item.getAttribute("affiliation"));
|
||||||
user.setRole(item.getAttribute("role"));
|
user.setRole(item.getAttribute("role"));
|
||||||
|
Loading…
Reference in New Issue
Block a user