IllegalArgumentException is not caught in searchGetterFor method
----------------------------------------------------------------

                 Key: DISPL-513
                 URL: http://jira.codehaus.org/browse/DISPL-513
             Project: DisplayTag
          Issue Type: Bug
          Components: Decorators
    Affects Versions: 1.1.1, 1.1, 1.0
            Reporter: Thomas Champagne


In the Decorator class, the searchGetterFor method doesn't catch the 
IllegalArgumentException. 
This exception is returned by the PropertyUtils.getPropertyDescriptor method 
(cf javadoc) :
    java.lang.IllegalArgumentException - if bean or name is null 
    java.lang.IllegalArgumentException - if a nested reference to a property 
returns null

You can check this with a nested property : person.address.street. If the 
address objet is null then IllegalArgumentException is thrown

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to