* fixing security issues
Signed-off-by: CubeBit <denis-seredenko@ukr.net>
This commit is contained in:
@@ -82,7 +82,7 @@ public class ClientThread implements Runnable {
|
|||||||
out.close();
|
out.close();
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
System.err.println(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ public class ClientThread implements Runnable {
|
|||||||
} catch (NoSuchPaddingException | IllegalBlockSizeException | IOException | NoSuchAlgorithmException |
|
} catch (NoSuchPaddingException | IllegalBlockSizeException | IOException | NoSuchAlgorithmException |
|
||||||
InvalidKeySpecException | BadPaddingException |InvalidKeyException | InvalidAlgorithmParameterException e) {
|
InvalidKeySpecException | BadPaddingException |InvalidKeyException | InvalidAlgorithmParameterException e) {
|
||||||
Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
Alert alert = new Alert(Alert.AlertType.ERROR, "Disconnected from server!");
|
Alert alert = new Alert(Alert.AlertType.ERROR, e.getMessage());
|
||||||
alert.show();
|
alert.show();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -106,7 +106,10 @@ public class ClientThread implements Runnable {
|
|||||||
out.close();
|
out.close();
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
Platform.runLater(() -> {
|
||||||
|
Alert alert = new Alert(Alert.AlertType.ERROR, e.getMessage());
|
||||||
|
alert.show();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user