Fixed NPE when logout.
This commit is contained in:
parent
603301b433
commit
e9bf5053cc
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue