Issue Type: Bug Bug
Affects Versions: PLINK_2.5.2.FInal
Assignee: Anil Saldhana
Created: 01/Oct/13 7:53 PM
Description:

      Group users = identityManager.lookupIdentityById(Group.class, "users");
      RelationshipManager relationshipManager = this.partitionManager.createRelationshipManager();
      BasicModel.addToGroup(relationshipManager, user, users);

If 'users' is null, a null group will be added, which later causes problems checking authorizations:

19:41:47,996 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/redoculous-io].[default]] (http-localhost/127.0.0.1:8080-4) JBWEB000236: Servlet.service() for servlet default threw exception: java.lang.NullPointerException
	at org.picketlink.idm.model.basic.BasicModel.isMember(BasicModel.java:188) [picketlink-idm-api-2.5.1.Final.jar:]
	at org.ocpsoft.redoculous.io.security.AuthorizationChecker.isMember(AuthorizationChecker.java:46) [classes:]
	at org.ocpsoft.redoculous.io.rewrite.SecurityConfiguration$1.evaluate(SecurityConfiguration.java:45) [classes:]

Relevant code:

Project: PicketLink
Priority: Major Major
Reporter: Lincoln Baxter III
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira