IDEMPIERE-941 NPE in WebServices when logging in with wrong username
This commit is contained in:
parent
2ab9b1554a
commit
4ce7fba3a9
|
@ -93,6 +93,9 @@ public class AbstractService {
|
|||
|
||||
Login login = new Login(m_cs.getCtx());
|
||||
KeyNamePair[] clients = login.getClients(loginRequest.getUser(), loginRequest.getPass());
|
||||
if (clients == null)
|
||||
return "Error login - User invalid";
|
||||
|
||||
boolean okclient = false;
|
||||
KeyNamePair selectedClient = null;
|
||||
for (KeyNamePair client : clients) {
|
||||
|
|
Loading…
Reference in New Issue