diff --git a/UI/SOGoUI/UIxComponent.m b/UI/SOGoUI/UIxComponent.m index 44f59a425..7fbccaa24 100644 --- a/UI/SOGoUI/UIxComponent.m +++ b/UI/SOGoUI/UIxComponent.m @@ -443,7 +443,16 @@ static SoProduct *commonProduct = nil; - (NSString *) currentDayDescription { - return [[[context activeUser] currentDay] jsonRepresentation]; + NSDictionary *currentDay; + SOGoUser *user; + + user = [context activeUser]; + if (user) + currentDay = [user currentDay]; + else + currentDay = [NSDictionary dictionary]; + + return [currentDay jsonRepresentation]; } - (NSString *) dateStringForDate: (NSCalendarDate *) _date