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

Timothy A. Bish resolved ARTEMIS-5147.
--------------------------------------
    Fix Version/s: 2.40.0
       Resolution: Fixed

> Unreachable code in ClientSessionFactoryImpl.java
> -------------------------------------------------
>
>                 Key: ARTEMIS-5147
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5147
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Alex
>            Assignee: Justin Bertram
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 2.40.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The createTransportConnection() function (line 1288) uses the try{}...catch{} 
> block. In this block, the transportConnection variable is created, which, 
> under any conditions of creation, is checked for the value != NULL. There is 
> no security threat, as this is just an unnecessary check.
> https://github.com/apache/activemq-artemis/blob/935690a0b40d2887a765ca962e769215a680e1d6/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientSessionFactoryImpl.java#L1288-L1293



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to