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

Justin Bertram resolved ARTEMIS-1673.
-------------------------------------
    Resolution: Invalid

The {{getReference}} method no longer exists.

> Coverity: Null pointer dereferences  (NULL_RETURNS) in 
> PageSubscriptionImpl.java
> --------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-1673
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1673
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.5.0
>            Reporter: Jiri Daněk
>            Priority: Major
>
> {noformat}
> ________________________________________________________________________________________________________
> *** CID 1465012:  Null pointer dereferences  (NULL_RETURNS)
> /activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageSubscriptionImpl.java:
>  366 in 
> org.apache.activemq.artemis.core.paging.cursor.impl.PageSubscriptionImpl.getReference(org.apache.activemq.artemis.core.paging.cursor.PagePosition)()
> 360        @Override
> 361        public String toString() {
> 362           return "PageSubscriptionImpl [cursorId=" + cursorId + ", 
> queue=" + queue + ", filter = " + filter + "]";
> 363        }
> 364
> 365        private PagedReference getReference(PagePosition pos) {
> >>>     CID 1465012:  Null pointer dereferences  (NULL_RETURNS)
> >>>     Dereferencing a pointer that might be null 
> >>> "cursorProvider.getMessage(pos)" when calling "newReference". (The 
> >>> virtual call resolves to 
> >>> "org.apache.activemq.artemis.core.paging.cursor.impl.PageCursorProviderImpl.newReference".)
> 366           return cursorProvider.newReference(pos, 
> cursorProvider.getMessage(pos), this);
> 367        }
> 368
> 369        @Override
> 370        public PageIterator iterator() {
> 371           return new CursorIterator();
> {noformat}



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

Reply via email to