[
https://issues.apache.org/jira/browse/OPENEJB-1553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13082919#comment-13082919
]
David Blevins commented on OPENEJB-1553:
----------------------------------------
Haven't check the trunk code, but if we went ahead with this fix we'll need to
figure out why there isn't a ThreadContext and ensure there is one. It should
be safe to assume there is a thread context or a whole ton of stuff will break
including JNDI, Security and more.
> Adding NPE protection for operations on ThreadContext.getThreadContext()
> object.
> --------------------------------------------------------------------------------
>
> Key: OPENEJB-1553
> URL: https://issues.apache.org/jira/browse/OPENEJB-1553
> Project: OpenEJB
> Issue Type: Bug
> Components: ejb31
> Affects Versions: (trunk/openejb3)
> Reporter: Shawn Jiang
> Attachments:
> 0002-Add-NPE-protection-for-operations-on-ThreadContext.g.patch
>
>
> ThreadContext.getThreadContext().xxxx operation is dangerous because
> potential NPE.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira