diff options
author | iNPUTmice <daniel@gultsch.de> | 2015-02-27 17:04:13 +0100 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2015-02-27 17:04:13 +0100 |
commit | f3be0d99cc4e59b784d6bebedd58c58829d94327 (patch) | |
tree | a42436bb063e6622502014956a32f12ac3ca0db3 /src | |
parent | 6ad4865d961e187c9fa96f91a5ffeac68b756b51 (diff) |
don't add users with null nicks to muc user list
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/MucOptions.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/MucOptions.java b/src/main/java/eu/siacs/conversations/entities/MucOptions.java index 2fd4db74..addee8db 100644 --- a/src/main/java/eu/siacs/conversations/entities/MucOptions.java +++ b/src/main/java/eu/siacs/conversations/entities/MucOptions.java @@ -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")); |