1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 17:49:38 +02:00

SMACK-294: Improve handling for empty groups

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11643 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Günther Niess 2010-02-18 14:33:45 +00:00 committed by niess
parent a441d856f8
commit 379b119d12
2 changed files with 5 additions and 2 deletions

View file

@ -233,7 +233,7 @@ public class Roster {
RosterPacket.Item item = new RosterPacket.Item(user, name);
if (groups != null) {
for (String group : groups) {
if (group != null) {
if (group != null && group.trim().length() > 0) {
item.addGroupName(group);
}
}