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:[EMAIL PROTECTED]";>Raphael Luta</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Paul Spener</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to