Changeset 1709

Show
Ignore:
Timestamp:
01/08/12 09:06:11 (4 months ago)
Author:
icare4
Message:

Fixes problem in Libre Office plugin

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/org/rapla/plugin/officeprinting/OfficePrintingMenuFactory.java

    r1708 r1709  
    159159                                        } 
    160160                                        Allocatable[] resources = reservation.getResources(); 
     161                                        String resourceName = ""; 
     162                                        if(resources.length != 0) { 
    161163                                        Allocatable firstResource = resources[0]; 
    162                                         String resourceName = firstResource.getName(getLocale()); 
     164                                                resourceName = firstResource.getName(getLocale()); 
     165                                        } 
    163166                                        Date startDate = appointment.getStart(); 
    164167                                        String startDateStr = null;