You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by js...@apache.org on 2002/08/28 11:29:32 UTC
cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant JellyPropsHandler.java
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>