runelite-client: fix npe in websocket close

This commit is contained in:
Adam
2017-05-15 08:30:06 -04:00
parent e90e6ea2ab
commit a10b565f2e

View File

@@ -99,7 +99,10 @@ public class WSClient extends WebSocketListener implements AutoCloseable
@Override
public void close()
{
webSocket.close(1000, null);
if (webSocket != null)
{
webSocket.close(1000, null);
}
}
@Override