cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/notification Notifier.java
Date Fri, 28 Jun 2002 13:17:38 GMT
vgritsenko    2002/06/28 06:17:38

  Modified:    src/java/org/apache/cocoon/components/notification Tag:
                        cocoon_2_0_3_branch Notifier.java
  Log:
  Fix NPE in notifier
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.6.2.2   +3 -5      xml-cocoon2/src/java/org/apache/cocoon/components/notification/Notifier.java
  
  Index: Notifier.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/notification/Notifier.java,v
  retrieving revision 1.6.2.1
  retrieving revision 1.6.2.2
  diff -u -r1.6.2.1 -r1.6.2.2
  --- Notifier.java	6 Jun 2002 08:47:40 -0000	1.6.2.1
  +++ Notifier.java	28 Jun 2002 13:17:37 -0000	1.6.2.2
  @@ -188,16 +188,14 @@
   
       Map extraDescriptions = n.getExtraDescriptions();
       Iterator keyIter = extraDescriptions.keySet().iterator();
  -
       while (keyIter.hasNext()) {
         String key = (String) keyIter.next();
  -
  +      String value = String.valueOf(extraDescriptions.get(key));
         atts = new AttributesImpl();
   
         atts.addAttribute(URI, "description", PREFIX + ":description", "CDATA", key);
         ch.startElement(URI, "extra", PREFIX + ":extra", atts);
  -      ch.characters(extraDescriptions.get(key).toString().toCharArray(), 0,
  -              (extraDescriptions.get(key).toString()).length());
  +      ch.characters(value.toCharArray(), 0, value.length());
         ch.endElement(URI, "extra", PREFIX + ":extra");
       }
   
  
  
  

----------------------------------------------------------------------
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