diff options
author | Iain Holmes <iain@src.gnome.org> | 2001-07-04 00:18:57 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2001-07-04 00:18:57 +0800 |
commit | c7553c75aa2b11b42df7031773dd6326c4a98272 (patch) | |
tree | 22c58e92f51b7ebc039a862ae1573e431521e130 /my-evolution | |
parent | ce575645ca0cd0231e1907aa981855a90dac110b (diff) | |
download | gsoc2013-evolution-c7553c75aa2b11b42df7031773dd6326c4a98272.tar.gz gsoc2013-evolution-c7553c75aa2b11b42df7031773dd6326c4a98272.tar.zst gsoc2013-evolution-c7553c75aa2b11b42df7031773dd6326c4a98272.zip |
Fix crashes if the offline button is clicked before the summary has been created
svn path=/trunk/; revision=10750
Diffstat (limited to 'my-evolution')
-rw-r--r-- | my-evolution/ChangeLog | 6 | ||||
-rw-r--r-- | my-evolution/e-summary.c | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog index 4b3bd0c870..fae5f529b6 100644 --- a/my-evolution/ChangeLog +++ b/my-evolution/ChangeLog @@ -1,3 +1,9 @@ +2001-07-03 Iain Holmes <iain@ximian.com> + + * e-summary.c (e_summary_set_online): Return if summary == NULL. + (e_summary_add_connections): Return NULL if summary == NULL. + (e_summary_count_connections): Return 0 if summary == NULL. + 2001-07-02 Iain Holmes <iain@ximian.com> * e-summary-tasks.[ch]: New files for tasks. diff --git a/my-evolution/e-summary.c b/my-evolution/e-summary.c index 1af0b1edac..833073c94c 100644 --- a/my-evolution/e-summary.c +++ b/my-evolution/e-summary.c @@ -589,6 +589,10 @@ e_summary_count_connections (ESummary *summary) GList *p; int count = 0; + if (summary == NULL) { + return 0; + } + for (p = summary->priv->connections; p; p = p->next) { ESummaryConnection *c; @@ -605,6 +609,10 @@ e_summary_add_connections (ESummary *summary) GList *p; GList *connections = NULL; + if (summary == NULL) { + return NULL; + } + for (p = summary->priv->connections; p; p = p->next) { ESummaryConnection *c; GList *r; @@ -626,6 +634,10 @@ e_summary_set_online (ESummary *summary, { GList *p; + if (summary == NULL) { + return; + } + for (p = summary->priv->connections; p; p = p->next) { ESummaryConnection *c; |