Use clear instead of empty string for overwriting value in memory

This commit is contained in:
Christoph Atteneder 2017-11-23 12:42:02 +01:00
parent 859ce2cdfd
commit 794ac5da2d
No known key found for this signature in database
GPG key ID: CD5DC1C529CDFD3B

View file

@ -136,8 +136,8 @@ public class PasswordView extends ActivatableView<GridPane, Void> {
new Popup<>()
.feedback(Res.get("password.walletDecrypted"))
.show();
passwordField.setText("");
repeatedPasswordField.setText("");
passwordField.clear();
repeatedPasswordField.clear();
walletsManager.backupWallets();
} else {
pwButton.setDisable(false);
@ -151,8 +151,8 @@ public class PasswordView extends ActivatableView<GridPane, Void> {
new Popup<>()
.feedback(Res.get("password.walletEncrypted"))
.show();
passwordField.setText("");
repeatedPasswordField.setText("");
passwordField.clear();
repeatedPasswordField.clear();
walletsManager.clearBackup();
walletsManager.backupWallets();
} catch (Throwable t) {