Patrick Varilly created THRIFT-2713: ---------------------------------------
Summary: 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 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)