IDEMPIERE-3895 NPE in fitnesse login fixture when wrong username
This commit is contained in:
parent
ad0ffe1fbf
commit
10f834d36a
|
@ -167,11 +167,13 @@ public class Login extends TableFixture {
|
||||||
KeyNamePair[] clients = login.getClients(m_user, m_password);
|
KeyNamePair[] clients = login.getClients(m_user, m_password);
|
||||||
boolean okclient = false;
|
boolean okclient = false;
|
||||||
KeyNamePair selectedClient = null;
|
KeyNamePair selectedClient = null;
|
||||||
for (KeyNamePair client : clients) {
|
if (clients != null) {
|
||||||
if (client.getKey() == m_client_id) {
|
for (KeyNamePair client : clients) {
|
||||||
okclient = true;
|
if (client.getKey() == m_client_id) {
|
||||||
selectedClient = client;
|
okclient = true;
|
||||||
break;
|
selectedClient = client;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!okclient)
|
if (!okclient)
|
||||||
|
|
Loading…
Reference in New Issue