diff --git a/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java b/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java index 90614ee8d8b..8ccc9bbdf18 100644 --- a/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java +++ b/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java @@ -198,7 +198,7 @@ public class ChatServlet extends HttpServlet // wakeup member if polling AsyncContext async=m._async.get(); - if (m._async.compareAndSet(async,null)) + if (async!=null & m._async.compareAndSet(async,null)) async.dispatch(); } }