You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by aj...@apache.org on 2009/09/07 05:29:40 UTC

svn commit: r811985 - /incubator/jspwiki/trunk/src/java/org/apache/wiki/util/CommentedProperties.java

Author: ajaquith
Date: Mon Sep  7 03:29:40 2009
New Revision: 811985

URL: http://svn.apache.org/viewvc?rev=811985&view=rev
Log:
Fixed bug in CommentedProperties.

Modified:
    incubator/jspwiki/trunk/src/java/org/apache/wiki/util/CommentedProperties.java

Modified: incubator/jspwiki/trunk/src/java/org/apache/wiki/util/CommentedProperties.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/java/org/apache/wiki/util/CommentedProperties.java?rev=811985&r1=811984&r2=811985&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/java/org/apache/wiki/util/CommentedProperties.java (original)
+++ incubator/jspwiki/trunk/src/java/org/apache/wiki/util/CommentedProperties.java Mon Sep  7 03:29:40 2009
@@ -192,7 +192,7 @@
 
     private void writeText( BufferedWriter writer, Object entry, EscapeMode mode ) throws IOException
     {
-        String e = entry.toString();
+        String e = entry == null ? "" : entry.toString();
         boolean leadingSpaces = true;
         for( int i = 0; i < e.length(); i++ )
         {