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

Boleslaw Dawidowicz (JIRA) jira-events at lists.jboss.org
Mon Sep 12 08:58:26 EDT 2011


     [ https://issues.jboss.org/browse/GTNPORTAL-1909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Boleslaw Dawidowicz resolved GTNPORTAL-1909.
--------------------------------------------

    Resolution: Done


> 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
>             Fix For: 3.2.0-M02
>
>
> 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