[
https://issues.apache.org/jira/browse/ARTEMIS-5094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robbie Gemmell resolved ARTEMIS-5094.
-------------------------------------
Fix Version/s: 2.40.0
Resolution: Fixed
> potential null dereference in QueueImpl
> ---------------------------------------
>
> Key: ARTEMIS-5094
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5094
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Ekaterina Zilotina
> Assignee: Justin Bertram
> Priority: Minor
> Labels: pull-request-available
> Fix For: 2.40.0
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> In results of static analyze with Svace I found potential error of category
> "*DEREF_AFTER_NULL*" (situation when value compared with null and then
> dereferenced without checks) in [QueueImpl
> constructor|https://github.com/apache/activemq-artemis/blob/fb1b362b473cad51ae5d05a897be02b1fa8461d4/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java#L623]:
> There is *server* parameter, which compared with null [at line
> 633|https://github.com/apache/activemq-artemis/blob/fb1b362b473cad51ae5d05a897be02b1fa8461d4/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java#L633C7-L633C11]
> while *super* calls. And below, at line 638, *server* [dereferences in
> TransientQueueManagerImpl()
> call|https://github.com/apache/activemq-artemis/blob/fb1b362b473cad51ae5d05a897be02b1fa8461d4/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java#L638]
> without check for null. Is it correct?
--
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