clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject svn commit: r942446 - /incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.typerendering.scalaserverpages/src/main/java/org/apache/clerezza/platform/typerendering/scalaserverpages/ScalaServerPagesRenderlet.java
Date Sat, 08 May 2010 18:55:08 GMT
Author: hasan
Date: Sat May  8 18:55:08 2010
New Revision: 942446

URL: http://svn.apache.org/viewvc?rev=942446&view=rev
Log:
CLEREZZA-210: the result of an ssp execution is converted to string only if it is not null

Modified:
    incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.typerendering.scalaserverpages/src/main/java/org/apache/clerezza/platform/typerendering/scalaserverpages/ScalaServerPagesRenderlet.java

Modified: incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.typerendering.scalaserverpages/src/main/java/org/apache/clerezza/platform/typerendering/scalaserverpages/ScalaServerPagesRenderlet.java
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.typerendering.scalaserverpages/src/main/java/org/apache/clerezza/platform/typerendering/scalaserverpages/ScalaServerPagesRenderlet.java?rev=942446&r1=942445&r2=942446&view=diff
==============================================================================
--- incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.typerendering.scalaserverpages/src/main/java/org/apache/clerezza/platform/typerendering/scalaserverpages/ScalaServerPagesRenderlet.java
(original)
+++ incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.typerendering.scalaserverpages/src/main/java/org/apache/clerezza/platform/typerendering/scalaserverpages/ScalaServerPagesRenderlet.java
Sat May  8 18:55:08 2010
@@ -156,7 +156,9 @@ public class ScalaServerPagesRenderlet i
 				}
 				throw new RuntimeException(cause);
  			}
-			os.write(toString(execResult).getBytes("UTF-8"));
+			if (execResult != null) {
+				os.write(toString(execResult).getBytes("UTF-8"));
+			}
 			logger.debug("executed");
 			os.flush();
 			logger.debug("flushed");



Mime
View raw message