[
https://issues.apache.org/jira/browse/THRIFT-2713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Patrick Varilly updated THRIFT-2713:
------------------------------------
Attachment: thrift-0.9.2-JavaTSaslServerTransportWeakReferenceBugFix.patch
> Incorrect use of weak references in TSaslServerTransport.getTransport()
> -----------------------------------------------------------------------
>
> Key: THRIFT-2713
> URL: https://issues.apache.org/jira/browse/THRIFT-2713
> Project: Thrift
> Issue Type: Bug
> Components: Java - Library
> Reporter: Patrick Varilly
> Priority: Minor
> Attachments:
> thrift-0.9.2-JavaTSaslServerTransportWeakReferenceBugFix.patch
>
>
> The code for TSaslServerTransport.getTransport treats weak references
> incorrectly. It checks multiple times whether a WeakReference ret is such
> that ref.get() is not null, then calls ref.get() again to access the
> referent. If a garbage collection happens between the first and second calls
> to get(), a spurious NullPointerException will result.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)