[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6119) NullPointerException in AbstractPathImpl without source path

Michael Rudolf (JIRA) noreply at atlassian.com
Wed Apr 13 08:35:59 EDT 2011


NullPointerException in AbstractPathImpl without source path
------------------------------------------------------------

                 Key: HHH-6119
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6119
             Project: Hibernate Core
          Issue Type: Bug
          Components: entity-manager
    Affects Versions: 3.6.3
            Reporter: Michael Rudolf


Whenever an instance of org.hibernate.ejb.criteria.paths.AbstractPathImpl does not have a source path (e.g., a criteria query root), missing null checks cause NullPointerExceptions. This is the case, when the get(String) method is used to navigate to a child path and an invalid attribute name is given. In this case, an IllegalArgumentException should be thrown indicating that the attribute with the given name was not found. However, due to missing null checks a NullPointerException is provoked when constructing the IllegalArgumentException instance.

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

        


More information about the hibernate-issues mailing list