viviel created TUBEMQ-138:
-----------------------------

             Summary: Optimize core module test case code
                 Key: TUBEMQ-138
                 URL: https://issues.apache.org/jira/browse/TUBEMQ-138
             Project: Apache TubeMQ
          Issue Type: Improvement
            Reporter: viviel
            Assignee: viviel


1. Optimize the use of assertions
 2. Fix possible null pointer exception
{code:java}
SSLEngine sslEngine = null;
try {
    // create engine
    sslEngine = TSSLEngineUtil.createSSLEngine(keyStorePath, trustStorePath,
    keyStorePassword, trustStorePassword, true, false);
} catch (Throwable e) {
    e.printStackTrace();
}
// If the above code is a field, it may cause the object sslEngine is null
boolean needClientAuth = sslEngine.getNeedClientAuth();
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to