You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Mike Adamson <mi...@gmail.com> on 2011/06/21 19:56:10 UTC
NullPointerException in GroupCache
Hi,
I have been getting an intermittent NullPointerException in
GroupCache.getGroups here:
for ( Object obj : ehCache.getKeys() )
{
String group = ( String ) obj;
>>> Set<String> members = ( Set<String> ) ehCache.get( group
).getValue();
if ( members == null )
{
continue;
}
I have used ehCache before and I think that the cache is removing expired
groups but leaving the keys in the cache. I think this needs to check for
the cache entry before getting the value. I'm raising a jira for it. I
haven't checked any of the other caches.
Cheers,
MikeA