jford       2003/07/16 17:08:53

  Modified:    src/java/org/apache/jetspeed/modules/actions/portlets
                        CustomizeSetAction.java
  Log:
  Fixed initialization of the template string buffer
  
  PR: Bugzilla #19589
  Submitted by: Georges Clerc
  
  
  Revision  Changes    Path
  1.45      +4 -2      
jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/portlets/CustomizeSetAction.java
  
  Index: CustomizeSetAction.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/portlets/CustomizeSetAction.java,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- CustomizeSetAction.java   9 Jul 2003 16:23:43 -0000       1.44
  +++ CustomizeSetAction.java   17 Jul 2003 00:08:53 -0000      1.45
  @@ -190,11 +190,13 @@
           if (template != null)
           {
               int idx = template.lastIndexOf(".");
  -            StringBuffer buffer = new StringBuffer(template);
  +            
               if (idx > 0)
               {
                   template = template.substring(0, idx);
               }
  +            
  +            StringBuffer buffer = new StringBuffer(template);
               buffer.append("-").append(mode).append(".vm");
               
               template = TemplateLocator.locatePortletTemplate(rundata, 
buffer.toString());
  
  
  

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

Reply via email to