aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/itip-formatter/ChangeLog7
-rw-r--r--plugins/itip-formatter/itip-formatter.c9
2 files changed, 12 insertions, 4 deletions
diff --git a/plugins/itip-formatter/ChangeLog b/plugins/itip-formatter/ChangeLog
index 5394bc2148..acff351299 100644
--- a/plugins/itip-formatter/ChangeLog
+++ b/plugins/itip-formatter/ChangeLog
@@ -1,3 +1,10 @@
+2007-08-21 Suman Manjunath <msuman@novell.com>
+
+ ** Fix for bug #301835 (BNC)
+
+ * itip-formatter.c: (find_from_address):
+ Fixed crash when no SENTBY parameter present.
+
2007-08-06 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #460326
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c
index 6e85300a3d..ab5b8a6399 100644
--- a/plugins/itip-formatter/itip-formatter.c
+++ b/plugins/itip-formatter/itip-formatter.c
@@ -307,11 +307,12 @@ find_from_address (FormatItipPObject *pitip, icalcomponent *ical_comp)
}
param = icalproperty_get_first_parameter (prop, ICAL_SENTBY_PARAMETER);
- if (param)
+ if (param) {
organizer_sentby = icalparameter_get_sentby (param);
- if (organizer_sentby) {
- organizer_sentby_clean = g_strdup (itip_strip_mailto (organizer_sentby));
- organizer_sentby_clean = g_strstrip (organizer_sentby_clean);
+ if (organizer_sentby) {
+ organizer_sentby_clean = g_strdup (itip_strip_mailto (organizer_sentby));
+ organizer_sentby_clean = g_strstrip (organizer_sentby_clean);
+ }
}
if (!(organizer_sentby_clean || organizer_clean))