[gatein-issues] [JBoss JIRA] Created: (GTNPORTAL-1909) adding a null as an argument to EventListeners in Organization Service API should be forbidden

Viliam Rockai (JIRA) jira-events at lists.jboss.org
Mon May 23 10:55:00 EDT 2011


adding a null as an argument to EventListeners in Organization Service API should be forbidden
----------------------------------------------------------------------------------------------

                 Key: GTNPORTAL-1909
                 URL: https://issues.jboss.org/browse/GTNPORTAL-1909
             Project: GateIn Portal
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Identity integration
            Reporter: Viliam Rockai
            Assignee: Boleslaw Dawidowicz


you can add a null object through add*EventListener(*EventListener e) in nearly all handlers:
userHandler_ = service_.getUserHandler();
profileHandler_ = service_.getUserProfileHandler();
groupHandler_ = service_.getGroupHandler();
membershipHandler_ = service_.getMembershipHandler();

and that will mess the code later by throwing NullPointerException, when calling other methods from the API - I think it should throw NullPointerException right away.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list