[ https://issues.apache.org/jira/browse/TUBEMQ-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
viviel updated TUBEMQ-138: -------------------------- Fix Version/s: 0.5.0 > 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)