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();
|
||||
if (x != null) {
|
||||
Element item = x.findChild("item");
|
||||
if (item != null) {
|
||||
if (item != null && name != null) {
|
||||
user.setName(name);
|
||||
user.setAffiliation(item.getAttribute("affiliation"));
|
||||
user.setRole(item.getAttribute("role"));
|
||||
|
|
Loading…
Reference in a new issue