From 6d8542a62879bd8b6f06e2679fc9f846ba497935 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 1 Jul 2011 14:25:40 +0200 Subject: Call e_cal_client_check_save_schedules() only when found a calendar --- plugins/itip-formatter/itip-formatter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index 611324d05e..0770ea2ebb 100644 --- a/plugins/itip-formatter/itip-formatter.c +++ b/plugins/itip-formatter/itip-formatter.c @@ -701,7 +701,7 @@ decrease_find_data (FormatItipFindData *fd) * invitiations (REQUEST), but not replies (REPLY). * Replies only make sense for events with an organizer. */ - if (!e_cal_client_check_save_schedules (pitip->current_client) && + if (pitip->current_client && !e_cal_client_check_save_schedules (pitip->current_client) && (pitip->method == ICAL_METHOD_PUBLISH || pitip->method == ICAL_METHOD_REQUEST) && pitip->has_organizer) { rsvp_enabled = TRUE; -- cgit v1.2.3