FedericoGianni / ing-sw-2019-collovigh-contini-dei_cas

Digitalization of the board game Adrenaline from Cranio Creations. Playable with CLI or GUI, within LAN with clients connected via socket or RMI.
0 stars 1 forks source link

minor glitch #4

Closed ingconti closed 5 years ago

ingconti commented 5 years ago

You can allow an empty name. I tried once, and the second client get:

Screenshot 2019-07-07 at 12 18 27

ingconti commented 5 years ago

another little glitch. I started a client and clicked in "riconnetti". I got a spinning ball (on osx.. i.e. clock on windows) as client is stuck.

worse is You got an exception;

INFO: Received client connection. Exception in thread "Thread-29" java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1 at it.polimi.ingsw.network.serveronly.Socket.SocketConnectionReader.lambda$populateHeadersMap$4(SocketConnectionReader.java:245) at it.polimi.ingsw.network.serveronly.Socket.SocketConnectionReader.lambda$handleMsg$0(SocketConnectionReader.java:178) at java.base/java.lang.Thread.run(Thread.java:835)

FedericoGianni commented 5 years ago

You can allow an empty name. I tried once, and the second client get:

Screenshot 2019-07-07 at 12 18 27

we removed the possibility to choose a blank name, and we fixed the exception

ingconti commented 5 years ago

ok nice PLS make another folder... JARS_fixed and leave original JARS (yes, we can use git, but NO time during exam... If we eventually had to revert for any reason)