[ 
https://issues.apache.org/jira/browse/TUBEMQ-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

viviel closed TUBEMQ-138.
-------------------------

> 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
>            Priority: Low
>              Labels: pull-request-available
>             Fix For: 0.5.0
>
>
> 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