[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-7114) NPE in method ThreadLocalSessionContext.needsWrapping

Gail Badner (JIRA) noreply at atlassian.com
Wed Feb 29 19:23:48 EST 2012


    [ https://hibernate.onjira.com/browse/HHH-7114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45762#comment-45762 ] 

Gail Badner commented on HHH-7114:
----------------------------------

>From looking at the code, it doesn't look like needsWrapping() should ever be called with a null session.

Is this something you see happening? If so, please describe the circumstances.

Thanks,
Gail

> NPE in method ThreadLocalSessionContext.needsWrapping
> -----------------------------------------------------
>
>                 Key: HHH-7114
>                 URL: https://hibernate.onjira.com/browse/HHH-7114
>             Project: Hibernate ORM
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 4.1.0
>            Reporter: Ramunas Belkauskas
>            Priority: Minor
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> When the private method ThreadLocalSessionContext.needsWrapping is passed null "session" parameter, it throws NullPointerException when calling "Proxy.getInvocationHandler( session )".

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

        


More information about the hibernate-issues mailing list