Uploaded image for project: 'HornetQ'
  1. HornetQ
  2. HORNETQ-872

CLONE - NullPointerException in ClusterManagerImpl.destroyBridge

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Done
    • 2.2.11.GA
    • 2.2.12.Final
    • None
    • None

    Description

      We hit NPE in org.hornetq.core.server.cluster.impl.ClusterManagerImpl.destroyBridge.

         public void destroyBridge(final String name) throws Exception
         {
            Bridge bridge;
      
            synchronized (this)
            {
               bridge = bridges.remove(name);
               if (bridge != null)
               {
                  bridge.stop();
                  managementService.unregisterBridge(name);
               }
            }
      
            bridge.flushExecutor();
         }
      

      Problem is on the last line "bridge.flushExecutor()". There is no check if bridge is null.

      Attachments

        Issue Links

          Activity

            People

              csuconic@redhat.com Clebert Suconic
              pslavice@redhat.com Pavel Slavicek
              Archiver:
              samahaja@redhat.com Sagar Mahajan

              Dates

                Created:
                Updated:
                Resolved:
                Archived: