From e9bf5053cc239f5673a4f89beb4f8fb1cf650354 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Thu, 4 Dec 2008 04:01:10 +0000 Subject: [PATCH] Fixed NPE when logout. --- zkwebui/WEB-INF/src/org/adempiere/webui/AdempiereWebUI.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zkwebui/WEB-INF/src/org/adempiere/webui/AdempiereWebUI.java b/zkwebui/WEB-INF/src/org/adempiere/webui/AdempiereWebUI.java index 635eac8be7..b35ddc24db 100644 --- a/zkwebui/WEB-INF/src/org/adempiere/webui/AdempiereWebUI.java +++ b/zkwebui/WEB-INF/src/org/adempiere/webui/AdempiereWebUI.java @@ -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();