NPE runtime fix. Also allow empty passwords.

This commit is contained in:
zaxar163 2019-01-09 13:53:59 +04:00
parent 5b21ad4d7b
commit d3db63aba3
No known key found for this signature in database
GPG key ID: CEE900027AE098E0

View file

@ -149,7 +149,7 @@ function goAuth(event) {
var rsaPassword = null; var rsaPassword = null;
if (!passwordField.isDisable()) { if (!passwordField.isDisable()) {
var password = passwordField.getText(); var password = passwordField.getText();
if (!password.isEmpty()) { if (password !== null) {
rsaPassword = settings.setPassword(password); rsaPassword = settings.setPassword(password);
} else if (settings.rsaPassword !== null) { } else if (settings.rsaPassword !== null) {
rsaPassword = settings.rsaPassword; rsaPassword = settings.rsaPassword;