cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From froehl...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/transformation I18nTransformer.java
Date Sun, 05 May 2002 17:33:57 GMT
froehlich    02/05/05 10:33:57

  Modified:    src/java/org/apache/cocoon/transformation
                        I18nTransformer.java
  Log:
  applied patch from michael.enke@wincor-nixdorf.com (Michael Enke)
  NPE patch for I18nTransformer
  
  Revision  Changes    Path
  1.17      +2 -1      xml-cocoon2/src/java/org/apache/cocoon/transformation/I18nTransformer.java
  
  Index: I18nTransformer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/transformation/I18nTransformer.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- I18nTransformer.java	27 Apr 2002 09:40:38 -0000	1.16
  +++ I18nTransformer.java	5 May 2002 17:33:56 -0000	1.17
  @@ -224,7 +224,7 @@
    * @author <a href="mailto:Marcus.Crafter@managesoft.com">Marcus Crafter</a>
    * @author <a href="mailto:Michael.Enke@wincor-nixdorf.com">Michael Enke</a>
    * @author <a href="mailto:lassi.immonen@valkeus.com">Lassi Immonen</a>
  - * @version CVS $Id: I18nTransformer.java,v 1.16 2002/04/27 09:40:38 kpiroumian Exp $
  + * @version CVS $Id: I18nTransformer.java,v 1.17 2002/05/05 17:33:56 froehlich Exp $
    *
    * @todo Move all formatting/parsing routines to I18nUtils
    */
  @@ -1408,6 +1408,7 @@
           String pattern = (String)params.get(I18N_PATTERN_ATTRIBUTE);
           // the number value
           String value = (String)params.get(I18N_VALUE_ATTRIBUTE);
  +        if(value == null) return "";
           // type
           String type = (String)params.get(I18N_TYPE_ATTRIBUTE);
           // fraction-digits
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message