You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Youngho Cho <yo...@nannet.co.kr> on 2001/06/16 11:48:02 UTC
[patch] BaseValueParser.java
Hi,
if value is null , new NumberKey( null ) generates NumberFormatException.
Thanks,
youngho
Index: BaseValueParser.java
===================================================================
RCS file: /home/cvspublic/jakarta-turbine/src/java/org/apache/turbine/util/parser/BaseValueParser.java,v
retrieving revision 1.8
diff -u -r1.8 BaseValueParser.java
--- BaseValueParser.java 2001/05/16 09:31:18 1.8
+++ BaseValueParser.java 2001/06/16 09:37:32
@@ -1159,7 +1159,11 @@
if (object != null)
{
value = ((String[])object)[0];
- }
+ }
+ if( value == null )
+ {
+ return null;
+ }
return new NumberKey(value);
}
catch ( ClassCastException e )