- fixed error during exception handling, if trying to decrypt vault with unsupported key length

This commit is contained in:
Sebastian Stenzel 2015-01-10 15:51:46 +01:00
parent 7ce6ed6abb
commit 3ff8d6bc19
2 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@ public class UnsupportedKeyLengthException extends StorageCryptingException {
private final int supportedLength;
public UnsupportedKeyLengthException(int length, int maxLength) {
super(String.format("Key length (%i) exceeds policy maximum (%i).", length, maxLength));
super(String.format("Key length (%d) exceeds policy maximum (%d).", length, maxLength));
this.requestedLength = length;
this.supportedLength = maxLength;
}

View File

@ -137,6 +137,7 @@ public class UnlockController implements Initializable {
private void setControlsDisabled(boolean disable) {
usernameBox.setDisable(disable);
passwordField.setDisable(disable);
checkIntegrity.setDisable(disable);
unlockButton.setDisable(disable);
}