On Nov 4, 2007, at 5:07 PM, prasana wrote:
This is the same patch I came up here.
But in addition to making this changes, you need to make one more
change
also.
Since calling the Constructor of InternalGroupPrincipalImpl(String
fullPath)
+ internalGroup = new
InternalGroupPrincipalImpl(groupFullPathName);
will not instantiate the collection rolePrincipals, this will
result in
NullPointerException in the following line.
Collection internalRoles = internalGroup.getRolePrincipals();
So in the Constructor of InternalGroupPrincipalImpl(String fullPath)
rolePrincipals collection needs to be instantiated.
public InternalGroupPrincipalImpl(String fullPath)
{
super(GROUP_PRINCIPAL_CLASSNAME, fullPath);
+ this.rolePrincipals = new ArrayList();
}
This will fix the NullPointerException exception
Applied this patch amongst others. I've reopened the JIRA issue:
https://issues.apache.org/jira/browse/JS2-21
will be committing soon...