Author: knopp
Date: Wed Sep 17 13:21:19 2008
New Revision: 696432

URL: http://svn.apache.org/viewvc?rev=696432&view=rev
Log:
WICKET-1773

Modified:
    
wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java

Modified: 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java
URL: 
http://svn.apache.org/viewvc/wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java?rev=696432&r1=696431&r2=696432&view=diff
==============================================================================
--- 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java
 (original)
+++ 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java
 Wed Sep 17 13:21:19 2008
@@ -831,9 +831,12 @@
                        else
                        {
                                List pages = getPagesToSaveList(sessionId);
-                               synchronized (pages)
+                               if (pages != null)
                                {
-                                       flushPagesToSaveList(sessionId, pages);
+                                       synchronized (pages)
+                                       {
+                                               pages.clear();                  
                        
+                                       }
                                        entry.unbind();
                                }
                                pagesToSaveAll.remove(sessionId);
@@ -1115,8 +1118,7 @@
 
        /**
         * Loads the data stripped by
-        * [EMAIL PROTECTED] 
#stripSerializedPage(org.apache.wicket.protocol.http.pagestore.DiskPageStore.SerializedPageWithSession)}
-        * .
+        * [EMAIL PROTECTED] 
#stripSerializedPage(org.apache.wicket.protocol.http.pagestore.DiskPageStore.SerializedPageWithSession)}
 .
         * 
         * @param page
         * @return


Reply via email to