IDEMPIERE-1937:zk7: NPE when click cancel from screen "change role" when login and "forget password"

This commit is contained in:
hieplq 2014-10-23 11:49:19 +07:00
parent 21cf6fc9c5
commit 91de1b4358
2 changed files with 4 additions and 4 deletions

View File

@ -320,7 +320,7 @@ public class ResetPasswordPanel extends Window implements EventListener<Event>
else if (event.getTarget().getId().equals(ConfirmPanel.A_CANCEL))
{
SessionManager.logoutSession();
wndLogin.loginCancelled();
//wndLogin.loginCancelled();
}
}
@ -490,7 +490,7 @@ public class ResetPasswordPanel extends Window implements EventListener<Event>
@Override
public void onCallback(Integer result) {
SessionManager.logoutSession();
wndLogin.loginCancelled();
//wndLogin.loginCancelled();
}
});

View File

@ -535,13 +535,13 @@ public class RolePanel extends Window implements EventListener<Event>, Deferrabl
} else {
ctxBeforeChangeRole = null;
SessionManager.logoutSession();
wndLogin.loginCancelled();
//wndLogin.loginCancelled();
}
}
else if (ON_DEFER_LOGOUT.equals(event.getName()))
{
SessionManager.logoutSession();
wndLogin.loginCancelled();
//wndLogin.loginCancelled();
}
}