cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andr...@apache.org
Subject svn commit: r1305302 - /cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/I18nTransformer.java
Date Mon, 26 Mar 2012 10:44:46 GMT
Author: andreas
Date: Mon Mar 26 10:44:46 2012
New Revision: 1305302

URL: http://svn.apache.org/viewvc?rev=1305302&view=rev
Log:
Add precondition for encoding != null to CustomEncodingControl.

Modified:
    cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/I18nTransformer.java

Modified: cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/I18nTransformer.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/I18nTransformer.java?rev=1305302&r1=1305301&r2=1305302&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/I18nTransformer.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/I18nTransformer.java
Mon Mar 26 10:44:46 2012
@@ -2013,6 +2013,9 @@ public class I18nTransformer extends Abs
         private String encoding;
 
         public CustomEncodingControl(final String encoding) {
+            if (encoding == null) {
+                throw new IllegalArgumentException("Encoding must not be null.");
+            }
             this.encoding = encoding;
         }
         



Mime
View raw message