You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by si...@apache.org on 2009/05/04 19:37:15 UTC
svn commit: r771375 -
/labs/magma/trunk/beans-richtext/src/main/java/org/apache/magma/conversion/richtext/RichTextConverterToString.java
Author: simoneg
Date: Mon May 4 17:37:14 2009
New Revision: 771375
URL: http://svn.apache.org/viewvc?rev=771375&view=rev
Log:
LABS-213 : handle null values
Modified:
labs/magma/trunk/beans-richtext/src/main/java/org/apache/magma/conversion/richtext/RichTextConverterToString.java
Modified: labs/magma/trunk/beans-richtext/src/main/java/org/apache/magma/conversion/richtext/RichTextConverterToString.java
URL: http://svn.apache.org/viewvc/labs/magma/trunk/beans-richtext/src/main/java/org/apache/magma/conversion/richtext/RichTextConverterToString.java?rev=771375&r1=771374&r2=771375&view=diff
==============================================================================
--- labs/magma/trunk/beans-richtext/src/main/java/org/apache/magma/conversion/richtext/RichTextConverterToString.java (original)
+++ labs/magma/trunk/beans-richtext/src/main/java/org/apache/magma/conversion/richtext/RichTextConverterToString.java Mon May 4 17:37:14 2009
@@ -25,6 +25,7 @@
}
public RichTextString from(String value) {
+ if (value == null) return null;
RichTextValidator validator = null;
PropertyInfo prop = this.getProperty();
if (prop != null) {
@@ -42,6 +43,7 @@
}
public String to(RichTextString value) {
+ if (value == null) return null;
return value.getValue();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org