From 777f8937e445d5bec0a7c09856eb0df134126f5a Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Thu, 11 Mar 2004 14:33:48 +0000 Subject: [PATCH] Prevents adding items to groups with no name (NULL) git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2239 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/Roster.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/org/jivesoftware/smack/Roster.java b/source/org/jivesoftware/smack/Roster.java index ac81c50ac..f5ad60054 100644 --- a/source/org/jivesoftware/smack/Roster.java +++ b/source/org/jivesoftware/smack/Roster.java @@ -248,7 +248,7 @@ public class Roster { } /** - * Cretaes a new roster entry and prsence subscription. The server will asynchronously + * Creates a new roster entry and presence subscription. The server will asynchronously * update the roster with the subscription status. * * @param user the user. @@ -263,7 +263,9 @@ public class Roster { RosterPacket.Item item = new RosterPacket.Item(user, name); if (groups != null) { for (int i=0; i