You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2010/03/03 23:07:37 UTC
svn commit: r918719 -
/ofbiz/trunk/applications/product/src/org/ofbiz/product/store/ProductStoreWorker.java
Author: doogie
Date: Wed Mar 3 22:07:36 2010
New Revision: 918719
URL: http://svn.apache.org/viewvc?rev=918719&view=rev
Log:
Don't force the session to be created in getProductStoreId.
Modified:
ofbiz/trunk/applications/product/src/org/ofbiz/product/store/ProductStoreWorker.java
Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/store/ProductStoreWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/store/ProductStoreWorker.java?rev=918719&r1=918718&r2=918719&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/store/ProductStoreWorker.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/store/ProductStoreWorker.java Wed Mar 3 22:07:36 2010
@@ -76,8 +76,8 @@
public static String getProductStoreId(ServletRequest request) {
HttpServletRequest httpRequest = (HttpServletRequest) request;
- HttpSession session = httpRequest.getSession();
- if (session.getAttribute("productStoreId") != null) {
+ HttpSession session = httpRequest.getSession(false);
+ if (session != null && session.getAttribute("productStoreId") != null) {
return (String) session.getAttribute("productStoreId");
} else {
GenericValue webSite = CatalogWorker.getWebSite(request);