You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by kn...@apache.org on 2008/09/17 22:21:20 UTC

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

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
-	 * {@link #stripSerializedPage(org.apache.wicket.protocol.http.pagestore.DiskPageStore.SerializedPageWithSession)}
-	 * .
+	 * {@link #stripSerializedPage(org.apache.wicket.protocol.http.pagestore.DiskPageStore.SerializedPageWithSession)} .
 	 * 
 	 * @param page
 	 * @return