IDEMPIERE-941 NPE in WebServices when logging in with wrong username

This commit is contained in:
Richard Morales 2013-07-16 00:12:28 -05:00
parent 2ab9b1554a
commit 4ce7fba3a9
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,9 @@ public class AbstractService {
Login login = new Login(m_cs.getCtx()); Login login = new Login(m_cs.getCtx());
KeyNamePair[] clients = login.getClients(loginRequest.getUser(), loginRequest.getPass()); KeyNamePair[] clients = login.getClients(loginRequest.getUser(), loginRequest.getPass());
if (clients == null)
return "Error login - User invalid";
boolean okclient = false; boolean okclient = false;
KeyNamePair selectedClient = null; KeyNamePair selectedClient = null;
for (KeyNamePair client : clients) { for (KeyNamePair client : clients) {