Commit 0f61a551 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed problem when username contained _ and JID was only a node. JM-520

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3334 b35dd754-fafc-0310-a699-88a17e54d16e
parent 563b3eff
...@@ -430,13 +430,16 @@ public class DefaultGroupProvider implements GroupProvider { ...@@ -430,13 +430,16 @@ public class DefaultGroupProvider implements GroupProvider {
ResultSet rs = pstmt.executeQuery(); ResultSet rs = pstmt.executeQuery();
while (rs.next()) { while (rs.next()) {
String user = rs.getString(1); String user = rs.getString(1);
JID userJID = new JID(user); JID userJID = null;
if (user.indexOf('@') == -1) { if (user.indexOf('@') == -1) {
// Create JID of local user if JID does not match a component's JID // Create JID of local user if JID does not match a component's JID
if (!server.matchesComponent(userJID)) { if (!server.matchesComponent(userJID)) {
userJID = server.createJID(user, null); userJID = server.createJID(user, null);
} }
} }
else {
userJID = new JID(user);
}
members.add(userJID); members.add(userJID);
} }
rs.close(); rs.close();
......
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