Skip to Content.
Sympa Menu

grouper-dev - [grouper-dev] LdapSession.list bug

Subject: Grouper Developers Forum

List archive

[grouper-dev] LdapSession.list bug


Chronological Thread 
  • From: Jeff McCullough <>
  • To: Grouper Dev <>
  • Cc: " Administration" <>
  • Subject: [grouper-dev] LdapSession.list bug
  • Date: Wed, 24 Jul 2013 16:10:00 -0700


In the LdapSession.list method there is small bug that throws an error if the
ldap attribute in question does not exist for the user. There should be a
check for a null value before the for loop.

if (attribute != null) {
for (int i=0;i<attribute.size();i++) {

Object attributeValue = attribute.get(i);
attributeValue = GrouperUtil.typeCast(attributeValue,
returnType);
if (attributeValue != null) {
result.add((R)attributeValue);
}
}
}

Cheers,
Jeff




Archive powered by MHonArc 2.6.16.

Top of Page