portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sg...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/services/template JetspeedTemplateLocatorService.java
Date Thu, 07 Feb 2002 22:20:07 GMT
sgala       02/02/07 14:20:07

  Modified:    src/java/org/apache/jetspeed/services/template
                        JetspeedTemplateLocatorService.java
  Log:
  Check for null in templateExists.
  
  Revision  Changes    Path
  1.6       +2 -1      jakarta-jetspeed/src/java/org/apache/jetspeed/services/template/JetspeedTemplateLocatorService.java
  
  Index: JetspeedTemplateLocatorService.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/template/JetspeedTemplateLocatorService.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- JetspeedTemplateLocatorService.java	3 Jan 2002 19:00:46 -0000	1.5
  +++ JetspeedTemplateLocatorService.java	7 Feb 2002 22:20:06 -0000	1.6
  @@ -109,7 +109,7 @@
    * @author <a href="mailto:rapahel@apache.org">Raphael Luta</a>
    * @author <a href="mailto:paulsp@apache.org">Paul Spener</a>
    * @author <a href="mailto:kimptoc_mail@yahoo.com">Chris Kimpton</a>
  - * @version $Id: JetspeedTemplateLocatorService.java,v 1.5 2002/01/03 19:00:46 sgala Exp
$
  + * @version $Id: JetspeedTemplateLocatorService.java,v 1.6 2002/02/07 22:20:06 sgala Exp
$
    */
   
   public class JetspeedTemplateLocatorService   extends TurbineBaseService
  @@ -600,6 +600,7 @@
        */
       public boolean templateExists(String templateKey)
       {
  +        if (null == templateKey) return false;
           if (useNameCache == true)
           {
               return templateMap.containsKey(templateKey);
  
  
  

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


Mime
View raw message