[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-7114) NPE in method ThreadLocalSessionContext.needsWrapping
Ramunas Belkauskas (JIRA)
noreply at atlassian.com
Thu Mar 1 04:52:48 EST 2012
[ https://hibernate.onjira.com/browse/HHH-7114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45766#comment-45766 ]
Ramunas Belkauskas commented on HHH-7114:
-----------------------------------------
Well i see [on line 125|https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/context/internal/ThreadLocalSessionContext.java#L125] null check, so there probably is a possibility of session being null (it depends on SessionBuilder implementation I guess..).
Either there must not be a null check, or you have to fix the case for session being null.
> 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