Commit a9d53178 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fixed ClassCastException.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@285 b35dd754-fafc-0310-a699-88a17e54d16e
parent 72ba1f91
......@@ -240,7 +240,7 @@ public class UserManagerImpl extends BasicModule implements UserManager {
try { if (con != null) { con.close(); } }
catch (Exception e) { Log.error(e); }
}
return new UserIterator((String [])users.toArray());
return new UserIterator((String [])users.toArray(new String[users.size()]));
}
public Iterator users(int startIndex, int numResults) throws UnauthorizedException {
......@@ -276,7 +276,7 @@ public class UserManagerImpl extends BasicModule implements UserManager {
try { if (con != null) { con.close(); } }
catch (Exception e) { Log.error(e); }
}
return new UserIterator((String [])users.toArray());
return new UserIterator((String [])users.toArray(new String[users.size()]));
}
// #####################################################################
......
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