Hi. I get this error when I try to use Role Exempt:

Invalid argument supplied for foreach() in file modules/userpoints_contrib/userpoints_role_exempt/userpoints_role_exempt.module in string 66.

66 string is: foreach($account->roles as $rid => $name) {

I use 6.6 Drupal and Userpoints 6.x-1.x-dev

Will be greateful for any suggestions.