You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by ja...@apache.org on 2007/04/12 07:19:30 UTC

svn commit: r527772 - /incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/FilePageStore.java

Author: janne
Date: Wed Apr 11 22:19:29 2007
New Revision: 527772

URL: http://svn.apache.org/viewvc?view=rev&rev=527772
Log:
do not fail even if Objects.objectToByteArray returns null

Modified:
    incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/FilePageStore.java

Modified: incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/FilePageStore.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/FilePageStore.java?view=diff&rev=527772&r1=527771&r2=527772
==============================================================================
--- incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/FilePageStore.java (original)
+++ incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/FilePageStore.java Wed Apr 11 22:19:29 2007
@@ -651,7 +651,7 @@
 		byte[] bytes = Objects.objectToByteArray(page);
 		totalSerializationTime += (System.currentTimeMillis() - t1);
 		serialized++;
-		if (log.isDebugEnabled())
+		if (log.isDebugEnabled() && bytes != null)
 		{
 			log.debug("serializing page " + key.pageClass + "[" + key.id + "," + key.versionNumber
 					+ "] size: " + bytes.length + " for session " + key.sessionId + " took "