xlawrence    2005/03/08 11:14:52 CET

  Modified files:
    syncServer/src/java/org/jahia/suite/calendar/sync4jModule 
                                                              
CalendarSyncSourceOutlook.java 
  Log:
  added test to check event content length. If length == 0, do not try to 
decode it
  
  Revision  Changes    Path
  1.8       +2 -1      
uwcal_JSR168/syncServer/src/java/org/jahia/suite/calendar/sync4jModule/CalendarSyncSourceOutlook.java
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/uwcal_JSR168/syncServer/src/java/org/jahia/suite/calendar/sync4jModule/CalendarSyncSourceOutlook.java.diff?r1=1.7&r2=1.8&f=h
  
  
  
  Index: CalendarSyncSourceOutlook.java
  ===================================================================
  RCS file: 
/home/cvs/repository/uwcal_JSR168/syncServer/src/java/org/jahia/suite/calendar/sync4jModule/CalendarSyncSourceOutlook.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- CalendarSyncSourceOutlook.java    3 Feb 2005 10:52:36 -0000       1.7
  +++ CalendarSyncSourceOutlook.java    8 Mar 2005 10:14:51 -0000       1.8
  @@ -177,7 +177,8 @@
           }
           
           // Content may be encoded
  -        if (!new String(byteContent).startsWith("BEGIN")) {
  +        if (byteContent.length > 0 &&
  +                (!new String(byteContent).startsWith("BEGIN"))) {
               byteContent = Base64.decode(byteContent);
           }
           
  

Reply via email to