Bug fixed for WStore - Null Pointer Exception
This commit is contained in:
parent
b88361ab8c
commit
4c7e4e8ba9
|
@ -216,8 +216,14 @@ public class WebSessionCtx implements Serializable
|
||||||
}
|
}
|
||||||
if ("/adempiere".equals(contextPath)) // HTML UI
|
if ("/adempiere".equals(contextPath)) // HTML UI
|
||||||
return;
|
return;
|
||||||
//
|
|
||||||
|
// Modifications for POSterita
|
||||||
|
if(wstore == null)
|
||||||
|
{
|
||||||
wstore = MStore.get(ctx, contextPath);
|
wstore = MStore.get(ctx, contextPath);
|
||||||
|
}
|
||||||
|
// End Modifications for Posterita
|
||||||
|
|
||||||
if (wstore == null)
|
if (wstore == null)
|
||||||
throw new IllegalStateException("No Web Store found - " + contextPath);
|
throw new IllegalStateException("No Web Store found - " + contextPath);
|
||||||
} // setWStore
|
} // setWStore
|
||||||
|
|
Loading…
Reference in New Issue