Client: catch la NumberFormatException #112

Closed
opened 2020-04-03 21:34:04 +02:00 by louis_royer · 0 comments
Collaborator
Starting with TCP
Files present on the server:
0 : Exit the program
1 : PolySTRI_combacau.pdf
2 : test
Type the number associated with the file to download:
Exception in thread "client P2P-JAVA-PROJECT" java.lang.NumberFormatException: For input string: ""                                                   
        at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)                                                    
        at java.base/java.lang.Integer.parseInt(Integer.java:662)
        at java.base/java.lang.Integer.parseInt(Integer.java:770)
        at clientP2P.ClientManagement.run(ClientManagement.java:291)
        at java.base/java.lang.Thread.run(Thread.java:834)
```text Starting with TCP Files present on the server: 0 : Exit the program 1 : PolySTRI_combacau.pdf 2 : test Type the number associated with the file to download: Exception in thread "client P2P-JAVA-PROJECT" java.lang.NumberFormatException: For input string: "" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.base/java.lang.Integer.parseInt(Integer.java:662) at java.base/java.lang.Integer.parseInt(Integer.java:770) at clientP2P.ClientManagement.run(ClientManagement.java:291) at java.base/java.lang.Thread.run(Thread.java:834) ```
louis_royer added the
bug
easy
labels 2020-04-03 21:34:04 +02:00
louis_royer referenced this issue from a commit 2020-04-03 22:03:18 +02:00
Sign in to join this conversation.
No description provided.