IDEMPIERE-158 Make selection of login languages more flexible / fix NPE when DB is not connected

This commit is contained in:
Carlos Ruiz 2013-10-29 11:30:26 -05:00
parent 1a113b9cb5
commit e9569318d7
1 changed files with 2 additions and 1 deletions

View File

@ -210,7 +210,8 @@ public final class ALogin extends CDialog
userTextField.setName("userTextField");
passwordField.setName("passwordField");
Env.getLoginLanguages(); // to fill the s_language array on Language
if (DB.isConnected())
Env.getLoginLanguages(); // to fill the s_language array on Language
languageCombo = new VComboBox(Language.getNames());
//red1 - end -