Unable to connect via WebSocket without enabling debugger

Issue #141 resolved
Marcel Dopita
created an issue

After switching to Babbler version 0.8.0, I can no longer connect to XMPP server via WebSocket. It works fine if I use ConsoleDebugger but I get following exception when setting debugger to null or when not enabling the debugger at all.

rocks.xmpp.core.session.ConnectionException: java.lang.NullPointerException
    at rocks.xmpp.core.session.XmppSession.tryConnect(XmppSession.java:373)
    at rocks.xmpp.core.session.XmppClient.connect(XmppClient.java:215)
    at rocks.xmpp.core.session.XmppSession.connect(XmppSession.java:311)
    at ...
Caused by: java.lang.NullPointerException
    at java.util.Objects.requireNonNull(Objects.java:203)
    at rocks.xmpp.websocket.net.client.WebSocketConnectionConfiguration.createWebSocketSession(WebSocketConnectionConfiguration.java:213)
    at rocks.xmpp.websocket.net.client.WebSocketConnectionConfiguration.createConnection(WebSocketConnectionConfiguration.java:162)
    at rocks.xmpp.core.session.XmppSession.tryConnect(XmppSession.java:357)
    ... 3 more

Comments (5)

  1. Log in to comment