svn commit: r918719 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/store/ProductStoreWorker.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r918719 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/store/ProductStoreWorker.java

doogie-3
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);