Index: .
===================================================================
--- .	(revision 1129)
+++ .	(working copy)
@@ -130,11 +130,12 @@
 	 */
 	public InputStream getStream() throws IOException
 	{
-		if (getValue() != null)
+		String value = getValue();
+		if (value != null)
 		{
 			if (getCharacterSet() != null)
 			{
-				return new ByteArrayInputStream(getValue().getBytes(
+				return new ByteArrayInputStream(value.getBytes(
 						getCharacterSet().getName()));
 			}
 			else
@@ -139,7 +140,7 @@
 			}
 			else
 			{
-				return new ByteArrayInputStream(getValue().getBytes());
+				return new ByteArrayInputStream(value.getBytes());
 			}
 		}
 		else
@@ -167,7 +168,8 @@
 	 */
 	public void write(OutputStream outputStream) throws IOException
 	{
-		if (getValue() != null)
+		String value = getValue();
+		if (value != null)
 		{
 			OutputStreamWriter osw = null;
 
@@ -180,7 +182,7 @@
 				osw = new OutputStreamWriter(outputStream);
 			}
 
-			osw.write(getValue());
+			osw.write(value);
 			osw.flush();
 		}
 	}
