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. 6
      src/main/java/ChatClient.java

6
src/main/java/ChatClient.java

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

Loading…
Cancel
Save