Pedro Igor commented on Bug PLINK-286

Hi Lincoln,

Are you trying to to do something like that:

        User someUser = createUser("someUser");
        Group someGroup = createGroup("someGroup", null);

        RelationshipManager relationshipManager = getPartitionManager().createRelationshipManager();

        BasicModel.addToGroup(relationshipManager, someUser, someGroup);

        // user has a membership relationship, and when we use isMember with a null group we get a NPE. 
        assertTrue(BasicModel.isMember(relationshipManager, someUser, null));

If so, we can avoid the NPE an throw a IdentityManagementException. I believe that this issue requires a review of all BasicModel methods in order to avoid such wrong behaviour.

Thanks.
Pedro Igor

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