Commit 2bceb9c7 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fixed to allow Groups with whitespaces in their names.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1131 b35dd754-fafc-0310-a699-88a17e54d16e
parent 2e1d3ddd
...@@ -195,9 +195,9 @@ ...@@ -195,9 +195,9 @@
String glist = group.getProperties().get("sharedRoster.groupList"); String glist = group.getProperties().get("sharedRoster.groupList");
List l = new ArrayList(); List l = new ArrayList();
if (glist != null) { if (glist != null) {
StringTokenizer tokenizer = new StringTokenizer(glist,", \t\n\r\f"); StringTokenizer tokenizer = new StringTokenizer(glist,",\t\n\r\f");
while (tokenizer.hasMoreTokens()) { while (tokenizer.hasMoreTokens()) {
String tok = tokenizer.nextToken(); String tok = tokenizer.nextToken().trim();
l.add(tok.trim()); l.add(tok.trim());
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment