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()
|
public void logout()
|
||||||
{
|
{
|
||||||
|
appDesktop.logout();
|
||||||
|
|
||||||
MSession mSession = MSession.get(Env.getCtx(), false);
|
MSession mSession = MSession.get(Env.getCtx(), false);
|
||||||
if (mSession != null) {
|
if (mSession != null) {
|
||||||
mSession.logout();
|
mSession.logout();
|
||||||
}
|
}
|
||||||
|
|
||||||
appDesktop.logout();
|
|
||||||
|
|
||||||
SessionManager.clearSession();
|
SessionManager.clearSession();
|
||||||
super.getChildren().clear();
|
super.getChildren().clear();
|
||||||
Page page = this.getPage();
|
Page page = this.getPage();
|
||||||
|
|
Loading…
Reference in New Issue