From c3f9ec4f94d47048ab97397dee0a2b94eefd512d Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 17 Mar 2014 19:21:20 +0100 Subject: [PATCH] Return the group if it exists in Roster.createGroup() --- core/src/main/java/org/jivesoftware/smack/Roster.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/jivesoftware/smack/Roster.java b/core/src/main/java/org/jivesoftware/smack/Roster.java index b658f28c5..2adbf221b 100644 --- a/core/src/main/java/org/jivesoftware/smack/Roster.java +++ b/core/src/main/java/org/jivesoftware/smack/Roster.java @@ -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);