https://bz.apache.org/bugzilla/show_bug.cgi?id=57788

            Bug ID: 57788
           Summary: NPE on session.addMessageHandler
           Product: Tomcat 8
           Version: 8.0.21
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebSocket
          Assignee: dev@tomcat.apache.org
          Reporter: ma...@lordzodiac.de

The NPE is throwed when then MessageHandler has no Generic Class.

java.lang.NullPointerException
    at org.apache.tomcat.websocket.Util.getGenericType(Util.java:192)
    at org.apache.tomcat.websocket.Util.getGenericType(Util.java:212)
    at org.apache.tomcat.websocket.Util.getGenericType(Util.java:212)
    at org.apache.tomcat.websocket.Util.getGenericType(Util.java:212)
    at org.apache.tomcat.websocket.Util.getMessageType(Util.java:171)
    at
org.apache.tomcat.websocket.WsSession.addMessageHandler(WsSession.java:198)

Please check on the Util class line 210. The call clazz.getSuperclass() returns
null if clazz is a Object class (see JDK Javadoc).

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to