Fixed NPE when logout.

This commit is contained in:
Heng Sin Low 2008-12-04 04:01:10 +00:00
parent 603301b433
commit e9bf5053cc
1 changed files with 2 additions and 2 deletions

View File

@ -176,13 +176,13 @@ public class AdempiereWebUI extends Window implements EventListener, IWebClient
*/
public void logout()
{
appDesktop.logout();
MSession mSession = MSession.get(Env.getCtx(), false);
if (mSession != null) {
mSession.logout();
}
appDesktop.logout();
SessionManager.clearSession();
super.getChildren().clear();
Page page = this.getPage();