Code: Select all
var myList = new java.util.ArrayList();Into the list I am putting userIDs as follows:
Code: Select all
myList .add(new java.lang.Integer(userID));If I later loop through the list with the following code:
Code: Select all
for (var it = myList.iterator(); it.hasNext();)
{
userID= it.next();
// get the user
tUser = _server.getUserById(userID);
}
error in extension [ myExt.as ]: Wrapped java.lang.ClassCastException (roomSpill.as#507) Internal: -976 -- Line number: (MainLib line: 507)
I believe the error occurs at the _server.getUserById(userID); function. Why is this occurring? What am I missing?
Thanks,
Brian