IDEMPIERE-293 Fixing exception thrown on session timeout
This commit is contained in:
parent
e2618e7232
commit
193954e7d7
|
@ -308,6 +308,9 @@ public class SessionContextListener implements ExecutionInit,
|
||||||
public void cleanup(Desktop desktop) throws Exception {
|
public void cleanup(Desktop desktop) throws Exception {
|
||||||
if (ServerContext.getCurrentInstance().isEmpty() || !isContextValid())
|
if (ServerContext.getCurrentInstance().isEmpty() || !isContextValid())
|
||||||
{
|
{
|
||||||
|
if(Executions.getCurrent()==null)
|
||||||
|
return;
|
||||||
|
|
||||||
setupExecutionContextFromSession(Executions.getCurrent());
|
setupExecutionContextFromSession(Executions.getCurrent());
|
||||||
}
|
}
|
||||||
MSession mSession = MSession.get(Env.getCtx(), false);
|
MSession mSession = MSession.get(Env.getCtx(), false);
|
||||||
|
@ -322,6 +325,7 @@ public class SessionContextListener implements ExecutionInit,
|
||||||
public void init(Desktop desktop, Object request) throws Exception {
|
public void init(Desktop desktop, Object request) throws Exception {
|
||||||
if (ServerContext.getCurrentInstance().isEmpty() || !isContextValid())
|
if (ServerContext.getCurrentInstance().isEmpty() || !isContextValid())
|
||||||
{
|
{
|
||||||
|
if(Executions.getCurrent()!=null)
|
||||||
setupExecutionContextFromSession(Executions.getCurrent());
|
setupExecutionContextFromSession(Executions.getCurrent());
|
||||||
}
|
}
|
||||||
MSession mSession = MSession.get(Env.getCtx(), false);
|
MSession mSession = MSession.get(Env.getCtx(), false);
|
||||||
|
|
Loading…
Reference in New Issue