mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-10 01:29:45 +03:00
NPE runtime fix. Also allow empty passwords.
This commit is contained in:
parent
5b21ad4d7b
commit
d3db63aba3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue