cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From upayav...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/environment/commandline CommandLineRequest.java
Date Sun, 21 Dec 2003 22:48:56 GMT
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) {
  
  
  

Mime
View raw message