1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 18:48:00 +01:00

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

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