You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by up...@apache.org on 2003/12/21 23:48:56 UTC
cvs commit: cocoon-2.1/src/java/org/apache/cocoon/environment/commandline CommandLineRequest.java
upayavira 2003/12/21 14:48:56
Modified: src/java/org/apache/cocoon/environment/commandline
CommandLineRequest.java
Log:
Fixing null pointer exception happening when HTMLGenerator is used within CLI
Revision Changes Path
1.6 +3 -1 cocoon-2.1/src/java/org/apache/cocoon/environment/commandline/CommandLineRequest.java
Index: CommandLineRequest.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/environment/commandline/CommandLineRequest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- CommandLineRequest.java 16 Nov 2003 00:52:08 -0000 1.5
+++ CommandLineRequest.java 21 Dec 2003 22:48:56 -0000 1.6
@@ -184,6 +184,8 @@
final Object value = this.parameters.get(name);
if (value instanceof String) {
return (String)value;
+ } else if (value == null) {
+ return null;
} else {
final String[] values = (String[]) value;
if (values.length == 0) {