roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eli...@apache.org
Subject svn commit: r462886 - /incubator/roller/trunk/src/org/apache/roller/webservices/json/TagStatsServlet.java
Date Wed, 11 Oct 2006 18:00:01 GMT
Author: eliast
Date: Wed Oct 11 11:00:00 2006
New Revision: 462886

URL: http://svn.apache.org/viewvc?view=rev&rev=462886
Log:
Tweaked JSON output in case startsWith is null

Modified:
    incubator/roller/trunk/src/org/apache/roller/webservices/json/TagStatsServlet.java

Modified: incubator/roller/trunk/src/org/apache/roller/webservices/json/TagStatsServlet.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/webservices/json/TagStatsServlet.java?view=diff&rev=462886&r1=462885&r2=462886
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/webservices/json/TagStatsServlet.java (original)
+++ incubator/roller/trunk/src/org/apache/roller/webservices/json/TagStatsServlet.java Wed
Oct 11 11:00:00 2006
@@ -99,7 +99,7 @@
             
             response.getWriter().println("{");
             response.getWriter().print("  prefix : \"");
-            response.getWriter().print(startsWith);
+            response.getWriter().print(startsWith == null ? "" : startsWith);
             response.getWriter().println("\",");
             response.getWriter().print("  weblog : \"");
             response.getWriter().print(website != null ? website.getHandle() : "");



Mime
View raw message