You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tubemq.apache.org by "viviel (Jira)" <ji...@apache.org> on 2020/05/20 15:10:00 UTC

[jira] [Created] (TUBEMQ-138) Optimize core module test case code

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)