Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2667

NPE when clearing non-persistent duplicate ID cache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.12.0
    • None
    • None

    Description

      Adding a call to clear() at the end of org.apache.activemq.artemis.tests.integration.persistence.DuplicateCacheTest#testDuplicateNonPersistent triggers an NPE:

      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)
      

      Attachments

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              jbertram Justin Bertram
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m