grouper-dev - RE: [grouper-dev] LdapSession.list bug
Subject: Grouper Developers Forum
List archive
- From: Chris Hyzer <>
- To: Jeff McCullough <>, Grouper Dev <>
- Cc: " Administration" <>
- Subject: RE: [grouper-dev] LdapSession.list bug
- Date: Thu, 25 Jul 2013 01:19:24 +0000
- Accept-language: en-US
Good catch, fixed:
https://bugs.internet2.edu/jira/browse/GRP-921
Chris
-----Original Message-----
From:
[mailto:]
On Behalf Of Jeff McCullough
Sent: Wednesday, July 24, 2013 7:10 PM
To: Grouper Dev
Cc:
Administration
Subject: [grouper-dev] LdapSession.list bug
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
- [grouper-dev] LdapSession.list bug, Jeff McCullough, 07/24/2013
- RE: [grouper-dev] LdapSession.list bug, Chris Hyzer, 07/24/2013
Archive powered by MHonArc 2.6.16.