commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons/jelly/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant JellyPropsHandler.java
Date Mon, 10 Mar 2003 08:02:19 GMT
jstrachan    2003/03/10 00:02:18

  Modified:    jelly/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant
                        JellyPropsHandler.java
  Log:
  added extra check for null values to avoid NullPointerException
  
  Revision  Changes    Path
  1.5       +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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- JellyPropsHandler.java	23 Oct 2002 16:35:36 -0000	1.4
  +++ JellyPropsHandler.java	10 Mar 2003 08:02:18 -0000	1.5
  @@ -118,7 +118,7 @@
           for (Iterator i = this.context.getVariableNames(); i.hasNext(); ) {
               String name = (String) i.next();
               Object value = this.context.getVariable(name);
  -            if (value != null) {
  +            if (name != null && value != 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