Uploaded image for project: 'ActiveMQ .Net'
  1. ActiveMQ .Net
  2. AMQNET-465

SessionExecutor Stop() sets taskrunner to null and then tries to shut it down

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.6.2
    • None
    • NMS
    • None

    Description

      It appears that the Stop() method sets the taskRunner to null prior to Shutdown() which will cause a NullReferenceException which gets bubbled up and causes the stop to be incomplete.

      Here is the code:

      SessionExecutor.cs
      public void Stop()
      {
          if(messageQueue.Running)
          {
              messageQueue.Stop();
              TaskRunner taskRunner = this.taskRunner;
      
              if(taskRunner != null)
              {
                  this.taskRunner = null;
                  taskRunner.Shutdown();
              }
          }
      }
      

      Attachments

        Activity

          People

            jgomes Jim Gomes
            mlagrotte Matt Lagrotte
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: