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

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

XMLWordPrintable

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

      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.

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

                Created:
                Updated:
                Resolved: