ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doo...@apache.org
Subject svn commit: r918719 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/store/ProductStoreWorker.java
Date Wed, 03 Mar 2010 22:07:37 GMT
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);



Mime
View raw message