unico       2004/02/22 07:06:26

  Modified:    src/java/org/apache/cocoon/caching ComponentCacheKey.java
  Log:
  prevent NPE for default components where hint is null
  
  Revision  Changes    Path
  1.2       +2 -2      
cocoon-2.2/src/java/org/apache/cocoon/caching/ComponentCacheKey.java
  
  Index: ComponentCacheKey.java
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.2/src/java/org/apache/cocoon/caching/ComponentCacheKey.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ComponentCacheKey.java    9 Mar 2003 00:08:44 -0000       1.1
  +++ ComponentCacheKey.java    22 Feb 2004 15:06:26 -0000      1.2
  @@ -93,7 +93,7 @@
                                String       componentIdentifier,
                                Serializable cacheKey) {
           this.type = componentType;
  -        this.identifier = componentIdentifier;
  +        this.identifier = componentIdentifier == null ? "" : 
componentIdentifier;
           this.key = cacheKey;
   
       }
  
  
  

Reply via email to