This commit is contained in:
Ziver Koc 2015-10-15 19:28:26 +00:00
parent 84f0d5f354
commit 9764f546da
2 changed files with 14 additions and 1 deletions

View file

@ -139,7 +139,7 @@ public class LoginDialog extends JDialog {
pack();
//move focus to the password field if already a username has been defined. must be done after pack()
if(username.isEmpty() == false){
if(username != null && username.isEmpty() == false){
passwordPasswordField.requestFocusInWindow();
}