commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/validators HttpValidatorTagSupport.java
Date Tue, 17 Dec 2002 14:33:19 GMT
dion        2002/12/17 06:33:18

  Modified:    latka/src/java/org/apache/commons/latka/jelly/validators
                        HttpValidatorTagSupport.java
  Log:
  - Fix NPE when there was no response
  - A new snapshot has been deployed to ibiblio
  
  Revision  Changes    Path
  1.5       +4 -2      jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/validators/HttpValidatorTagSupport.java
  
  Index: HttpValidatorTagSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/validators/HttpValidatorTagSupport.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- HttpValidatorTagSupport.java	8 Oct 2002 19:29:01 -0000	1.4
  +++ HttpValidatorTagSupport.java	17 Dec 2002 14:33:18 -0000	1.5
  @@ -161,7 +161,9 @@
               _log.debug("response = " + _response);
           }
   
  -        if (_listener.didRequestSucceed(_response.getRequest()) == false) {
  +        // if there's no response, or the request failed, skip it
  +        if (_response == null 
  +            || !_listener.didRequestSucceed(_response.getRequest())) {
               _log.debug("Validator skipped");
               return false;
           }
  
  
  

--
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