You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Jiri Daněk (JIRA)" <ji...@apache.org> on 2018/02/09 09:12:00 UTC

[jira] [Created] (ARTEMIS-1673) Coverity: Null pointer dereferences (NULL_RETURNS) in PageSubscriptionImpl.java

Jiri Daněk created ARTEMIS-1673:
-----------------------------------

             Summary: 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


{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
(v7.6.3#76005)