Browse Source

Check for null value before closing toServerWriter

remotes/origin/feature/client/exchange-messages-between-client-server
Alena Bandarovich 11 months ago
parent
commit
7022585850
  1. 2
      src/main/java/ChatClient.java

2
src/main/java/ChatClient.java

@ -77,7 +77,9 @@ public class ChatClient extends JFrame implements KeyListener {
}
}
if(null != toServerWriter) {
toServerWriter.close();
}
}
}

Loading…
Cancel
Save