commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: jakarta-commons/jelly/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant JellyPropsHandler.java
Date Sat, 10 Jul 2004 02:17:28 GMT
brett       2004/07/09 19:17:28

  Modified:    jelly/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant
                        JellyPropsHandler.java
  Log:
  though toString() shouldn't be null, it has been on some occasions
  treat it as if the object itself were null
  
  Revision  Changes    Path
  1.7       +1 -1      jakarta-commons/jelly/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant/JellyPropsHandler.java
  
  Index: JellyPropsHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant/JellyPropsHandler.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- JellyPropsHandler.java	25 Feb 2004 01:23:59 -0000	1.6
  +++ JellyPropsHandler.java	10 Jul 2004 02:17:28 -0000	1.7
  @@ -78,7 +78,7 @@
           for (Iterator i = this.context.getVariableNames(); i.hasNext(); ) {
               String name = (String) i.next();
               Object value = this.context.getVariable(name);
  -            if (name != null && value != null) {
  +            if (name != null && value != null && value.toString() != null)
{
                   h.put(name, value.toString());
               }
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message