Commit 0fbe54d3 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Fix for class-cast exceptions.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@272 b35dd754-fafc-0310-a699-88a17e54d16e
parent 30193569
......@@ -60,9 +60,9 @@ public class UserProviderFactory {
"UserProvider.roster.className"};
private static void setProviders(Class[] providers) throws IllegalAccessException, InstantiationException {
userPropertiesProvider = (UserPropertiesProvider)providers[1].newInstance();
userInfoProvider = (UserInfoProvider)providers[2].newInstance();
rosterItemProvider = (RosterItemProvider)providers[4].newInstance();
userPropertiesProvider = (UserPropertiesProvider)providers[0].newInstance();
userInfoProvider = (UserInfoProvider)providers[1].newInstance();
rosterItemProvider = (RosterItemProvider)providers[2].newInstance();
}
public static UserPropertiesProvider getUserPropertiesProvider() {
......
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