jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From catl...@apache.org
Subject cvs commit: jakarta-taglibs/mailer/src/org/apache/taglibs/mailer SendTag.java
Date Fri, 15 Feb 2002 19:22:46 GMT
catlett     02/02/15 11:22:46

  Modified:    mailer/src/org/apache/taglibs/mailer SendTag.java
  Log:
  minor bug fix to take care of a nullpointerexception
  
  Revision  Changes    Path
  1.11      +7 -3      jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/SendTag.java
  
  Index: SendTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/SendTag.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- SendTag.java	5 Dec 2001 19:26:55 -0000	1.10
  +++ SendTag.java	15 Feb 2002 19:22:46 -0000	1.11
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/SendTag.java,v
1.10 2001/12/05 19:26:55 catlett Exp $
  - * $Revision: 1.10 $
  - * $Date: 2001/12/05 19:26:55 $
  + * $Header: /home/cvs/jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/SendTag.java,v
1.11 2002/02/15 19:22:46 catlett Exp $
  + * $Revision: 1.11 $
  + * $Date: 2002/02/15 19:22:46 $
    *
    * ====================================================================
    *
  @@ -185,6 +185,10 @@
   	} else {
   	    // if no to address has been given through an error
   	    String errorinput = "A to address must be supplied.";
  +
  +	    // check for existence of error if it does not exist create it
  +	    if (error == null)
  +		error = new ArrayList();
   
   	    error.add(errorinput);
   	}
  
  
  

--
To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


Mime
View raw message