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,6 +210,7 @@ public final class ALogin extends CDialog
userTextField.setName("userTextField"); userTextField.setName("userTextField");
passwordField.setName("passwordField"); passwordField.setName("passwordField");
if (DB.isConnected())
Env.getLoginLanguages(); // to fill the s_language array on Language Env.getLoginLanguages(); // to fill the s_language array on Language
languageCombo = new VComboBox(Language.getNames()); languageCombo = new VComboBox(Language.getNames());