svn commit: r1078296 - /ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/VisitHandler.java

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

svn commit: r1078296 - /ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/VisitHandler.java

mrisaliti
Author: mrisaliti
Date: Sat Mar  5 14:42:07 2011
New Revision: 1078296

URL: http://svn.apache.org/viewvc?rev=1078296&view=rev
Log:
Remove some warning in VisitHandler (OFBIZ-4102)

Modified:
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/VisitHandler.java

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/VisitHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/VisitHandler.java?rev=1078296&r1=1078295&r2=1078296&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/VisitHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/stats/VisitHandler.java Sat Mar  5 14:42:07 2011
@@ -156,7 +156,7 @@ public class VisitHandler {
                                     GenericValue checkVisitor = delegator.findOne("Visitor", false, "visitorId", visitorId);
                                     if (checkVisitor == null) {
                                         GenericValue newVisitor = delegator.create("Visitor", "visitorId", visitorId);
-                                        session.setAttribute("visitor", visitor);
+                                        session.setAttribute("visitor", newVisitor);
                                     }
                                     visit.set("visitorId", visitorId);
                                 } catch (GenericEntityException e) {