Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1620

AbstractFramedChannel polls the taskRunQueue at two points, which could result in NPE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.29.Final
    • None
    • None
    • None

    Description

      If the two points that invoke the block bellow run in parallel:

      while (!taskRunQueue.isEmpty()) {
                      taskRunQueue.poll().run();
      

      We could get a NPE, since poll() returns null if there is not task in the queue.

      Attachments

        Issue Links

          Activity

            People

              flaviarnn Flavia Rainone
              flaviarnn Flavia Rainone
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: