don't add users with null nicks to muc user list

This commit is contained in:
iNPUTmice 2015-02-27 17:04:13 +01:00
parent 6ad4865d96
commit f3be0d99cc

View file

@ -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"));