dockerzhang opened a new issue #737:
URL: https://github.com/apache/incubator-inlong/issues/737


   <p>1. Optimize the use of assertions<br/>
    2. Fix possible null pointer exception</p>
   <div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
   <pre class="code-java">
   SSLEngine sslEngine = <span class="code-keyword">null</span>;
   <span class="code-keyword">try</span> {
       <span class="code-comment">// create engine
   </span>    sslEngine = TSSLEngineUtil.createSSLEngine(keyStorePath, 
trustStorePath,
       keyStorePassword, trustStorePassword, <span 
class="code-keyword">true</span>, <span class="code-keyword">false</span>);
   } <span class="code-keyword">catch</span> (Throwable e) {
       e.printStackTrace();
   }
   <span class="code-comment">// If the above code is a field, it may cause the 
object sslEngine is <span class="code-keyword">null</span>
   </span><span class="code-object">boolean</span> needClientAuth = 
sslEngine.getNeedClientAuth();
   </pre>
   </div></div>
   <i>JIRA link - <a 
href="https://issues.apache.org/jira/browse/INLONG-138";>[INLONG-138]</a> 
created by viviel</i>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to