Index: .
===================================================================
--- .	(revision 1129)
+++ .	(working copy)
@@ -167,7 +167,8 @@
 	 */
 	public void write(OutputStream outputStream) throws IOException
 	{
-		if (getValue() != null)
+		String value = getValue();
+		if (value != null)
 		{
 			OutputStreamWriter osw = null;
 
@@ -180,7 +181,7 @@
 				osw = new OutputStreamWriter(outputStream);
 			}
 
-			osw.write(getValue());
+			osw.write(value);
 			osw.flush();
 		}
 	}
