Bug fixed for WStore - Null Pointer Exception

This commit is contained in:
shameem_z 2007-09-20 06:26:33 +00:00
parent b88361ab8c
commit 4c7e4e8ba9
1 changed files with 8 additions and 2 deletions

View File

@ -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