jon         02/01/21 17:16:52

  Modified:    src/java/org/apache/turbine/pipeline RunModulesValve.java
  Log:
  if target is null, throw an exception with a message
  
  Revision  Changes    Path
  1.3       +6 -1      
jakarta-turbine-3/src/java/org/apache/turbine/pipeline/RunModulesValve.java
  
  Index: RunModulesValve.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-3/src/java/org/apache/turbine/pipeline/RunModulesValve.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RunModulesValve.java      18 Jan 2002 23:25:54 -0000      1.2
  +++ RunModulesValve.java      22 Jan 2002 01:16:52 -0000      1.3
  @@ -74,7 +74,7 @@
    * release 2 
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>James Taylor</a>
  - * @version $Id: RunModulesValve.java,v 1.2 2002/01/18 23:25:54 jvanzyl Exp $
  + * @version $Id: RunModulesValve.java,v 1.3 2002/01/22 01:16:52 jon Exp $
    */
   public class RunModulesValve 
       implements Valve
  @@ -161,6 +161,11 @@
       private String normalizeTarget( String target )
           throws Exception
       {
  +        if (target == null || target.length() == 0)
  +        {
  +            throw new Exception("RunModulesValve::normalizeTarget() target is 
null!");
  +        }
  +
           StringBuffer buffer = new StringBuffer( target );
   
           char c;        
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to