2 Replies Latest reply on Jun 16, 2012 6:01 AM by nva

    NullPointerException in JettyContinuationServlet

    nva

      The relevant stacktrace:

       

      [ERROR] java.lang.NullPointerException

      [ERROR]         at org.jboss.errai.bus.server.servlet.JettyContinuationsServlet.pollForMessages(JettyContinuationsServlet.java:92)

      [ERROR]         at org.jboss.errai.bus.server.servlet.JettyContinuationsServlet.doGet(JettyContinuationsServlet.java:55)

       

      In the latest SNAPSHOT in the JettyContinuationServlet I can see the following from line 91:

       

      [...]

      91      final MessageQueue queue = service.getBus().getQueue(session);

      92     queue.heartBeat();

      93

      94      if (queue == null) {

      [...]

       

      Could the queue.hearBeat() be moved after the null-check?

       

      Cheers,

       

      V.