From 4c7e4e8ba99668272b937431a8c769c02ecca9ee Mon Sep 17 00:00:00 2001 From: shameem_z Date: Thu, 20 Sep 2007 06:26:33 +0000 Subject: [PATCH] Bug fixed for WStore - Null Pointer Exception --- base/src/org/compiere/util/WebSessionCtx.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/base/src/org/compiere/util/WebSessionCtx.java b/base/src/org/compiere/util/WebSessionCtx.java index 2231a4aa13..0f7348f825 100644 --- a/base/src/org/compiere/util/WebSessionCtx.java +++ b/base/src/org/compiere/util/WebSessionCtx.java @@ -216,8 +216,14 @@ public class WebSessionCtx implements Serializable } if ("/adempiere".equals(contextPath)) // HTML UI return; - // - wstore = MStore.get(ctx, contextPath); + + // Modifications for POSterita + if(wstore == null) + { + wstore = MStore.get(ctx, contextPath); + } + // End Modifications for Posterita + if (wstore == null) throw new IllegalStateException("No Web Store found - " + contextPath); } // setWStore