Return the group if it exists in Roster.createGroup()

This commit is contained in:
Florian Schmaus 2014-03-17 19:21:20 +01:00
parent a46d02ca32
commit c3f9ec4f94
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ public class Roster {
throw new IllegalStateException("Anonymous users can't have a roster.");
}
if (groups.containsKey(name)) {
return null;
return groups.get(name);
}
RosterGroup group = new RosterGroup(name, connection);