aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-02-24 10:37:28 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-02-24 10:37:28 -0600
commitcd7552c4476b330b48116620b00000f65863ddaf (patch)
tree799378218229551349fc8b382431932020fe3958
parente3ce38f4690f01968fb9cc5da5aa606fe9fcc499 (diff)
downloadayatana-indicator-datetime-cd7552c4476b330b48116620b00000f65863ddaf.tar.gz
ayatana-indicator-datetime-cd7552c4476b330b48116620b00000f65863ddaf.tar.bz2
ayatana-indicator-datetime-cd7552c4476b330b48116620b00000f65863ddaf.zip
test the ECalComponent's summary for NULL before passing it to our std::string.
-rw-r--r--src/planner-eds.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/planner-eds.cpp b/src/planner-eds.cpp
index 7d9416c..f4c52a5 100644
--- a/src/planner-eds.cpp
+++ b/src/planner-eds.cpp
@@ -463,14 +463,15 @@ private:
e_cal_component_free_recur_list(recur_list);
ECalComponentText text;
- text.value = "";
+ text.value = nullptr;
e_cal_component_get_summary(component, &text);
+ if (text.value)
+ appointment.summary = text.value;
appointment.begin = DateTime(begin);
appointment.end = DateTime(end);
appointment.color = subtask->color;
appointment.is_event = vtype == E_CAL_COMPONENT_EVENT;
- appointment.summary = text.value;
appointment.uid = uid;
GList * alarm_uids = e_cal_component_get_alarm_uids(component);