mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-14 08:41:28 +00:00
handle NoSuchElementException during recovery key validation
This commit is contained in:
@@ -28,6 +28,7 @@ import javafx.scene.control.TextFormatter;
|
||||
import javafx.scene.input.KeyCode;
|
||||
import javafx.scene.input.KeyEvent;
|
||||
import java.io.IOException;
|
||||
import java.util.NoSuchElementException;
|
||||
|
||||
public class RecoveryKeyValidateController implements FxController {
|
||||
|
||||
@@ -151,6 +152,9 @@ public class RecoveryKeyValidateController implements FxController {
|
||||
} catch (IOException e) {
|
||||
LOG.warn("IO error while validating recovery key", e);
|
||||
recoveryKeyState.set(RecoveryKeyState.INVALID);
|
||||
} catch (NoSuchElementException e) {
|
||||
LOG.warn("Missing expected element during recovery key validation.", e);
|
||||
recoveryKeyState.set(RecoveryKeyState.INVALID);
|
||||
}
|
||||
}
|
||||
case RESTORE_MASTERKEY, RESET_PASSWORD, SHOW_KEY, CONVERT_VAULT -> {
|
||||
|
||||
Reference in New Issue
Block a user