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-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant JellyPropsHandler.java
Date Wed, 28 Aug 2002 09:29:32 GMT
jstrachan    2002/08/28 02:29:32

  Modified:    jelly/src/java/org/apache/commons/jelly/tags/ant
                        JellyPropsHandler.java
  Log:
  Applied Stephen's patch that tests for non-String properties.
  
  Revision  Changes    Path
  1.2       +7 -1      jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant/JellyPropsHandler.java
  
  Index: JellyPropsHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant/JellyPropsHandler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JellyPropsHandler.java	27 Aug 2002 14:04:29 -0000	1.1
  +++ JellyPropsHandler.java	28 Aug 2002 09:29:32 -0000	1.2
  @@ -100,7 +100,13 @@
           if (name == null) {
               return null;
           }
  -        return (String) this.context.getVariable(name);
  +        Object value = this.context.getVariable(name);
  +        if (value == null) {
  +            return null;
  +        }
  +        else {
  +            return value.toString();
  +        }
       }
   
       /** Retrieve all ant properties.
  
  
  

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


Mime
View raw message