simon987 / Much-Assembly-Required

Assembly programming game
GNU General Public License v3.0
930 stars 87 forks source link

Error on code upload #115

Closed simon987 closed 6 years ago

simon987 commented 6 years ago
[01/03 09:36:47:185] [FINE] (WS) Code upload from Blaster3001
[01/03 09:36:47:186] [SEVERE] an error occurred on connection org.java_websocket.WebSocketImpl@79f53d90: java.lang.NullPointerException
java.lang.NullPointerException
    at net.simon987.server.assembly.Assembler.parse(Assembler.java:331)
    at net.simon987.server.webserver.CodeUploadHandler.handle(CodeUploadHandler.java:26)
    at net.simon987.server.webserver.MessageEventDispatcher.dispatch(MessageEventDispatcher.java:33)
    at net.simon987.server.webserver.SocketServer.onMessage(SocketServer.java:97)
    at org.java_websocket.server.WebSocketServer.onWebsocketMessage(WebSocketServer.java:544)
    at org.java_websocket.drafts.Draft_6455.processFrame(Draft_6455.java:595)
    at org.java_websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:361)
    at org.java_websocket.WebSocketImpl.decode(WebSocketImpl.java:206)
    at org.java_websocket.server.WebSocketServer$WebSocketWorker.run(WebSocketServer.java:881)

https://github.com/simon987/Much-Assembly-Required/blob/ce0584a49fc524224efa3e91a11095197617dc94/Server/src/main/java/net/simon987/server/assembly/Assembler.java#L325-L331

And

    at org.java_websocket.WebSocketImpl.send(WebSocketImpl.java:598)
    at org.java_websocket.WebSocketImpl.send(WebSocketImpl.java:575)
    at net.simon987.server.webserver.CodeUploadHandler.handle(CodeUploadHandler.java:47)
    at net.simon987.server.webserver.MessageEventDispatcher.dispatch(MessageEventDispatcher.java:33)
    at net.simon987.server.webserver.SocketServer.onMessage(SocketServer.java:97)
    at org.java_websocket.server.WebSocketServer.onWebsocketMessage(WebSocketServer.java:544)
    at org.java_websocket.drafts.Draft_6455.processFrame(Draft_6455.java:595)
    at org.java_websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:361)
    at org.java_websocket.WebSocketImpl.decode(WebSocketImpl.java:206)
    at org.java_websocket.server.WebSocketServer$WebSocketWorker.run(WebSocketServer.java:881)

https://github.com/simon987/Much-Assembly-Required/blob/ce0584a49fc524224efa3e91a11095197617dc94/Server/src/main/java/net/simon987/server/webserver/CodeUploadHandler.java#L47