You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2020/03/23 22:30:00 UTC

[jira] [Resolved] (ARTEMIS-2667) NPE when clearing non-persistent duplicate ID cache

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

Justin Bertram resolved ARTEMIS-2667.
-------------------------------------
    Fix Version/s: 2.12.0
       Resolution: Fixed

> NPE when clearing non-persistent duplicate ID cache
> ---------------------------------------------------
>
>                 Key: ARTEMIS-2667
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2667
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Justin Bertram
>            Assignee: Justin Bertram
>            Priority: Major
>             Fix For: 2.12.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Adding a call to {{clear()}} at the end of {{org.apache.activemq.artemis.tests.integration.persistence.DuplicateCacheTest#testDuplicateNonPersistent}} triggers an NPE:
> {noformat}
> java.lang.NullPointerException
> 	at org.apache.activemq.artemis.core.postoffice.impl.DuplicateIDCacheImpl.clear(DuplicateIDCacheImpl.java:307)
> 	at org.apache.activemq.artemis.tests.integration.persistence.DuplicateCacheTest.testDuplicateNonPersistent(DuplicateCacheTest.java:122)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> 	...
> 	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)