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/e-summary.c | |
parent | ce575645ca0cd0231e1907aa981855a90dac110b (diff) | |
download | gsoc2013-evolution-c7553c75aa2b11b42df7031773dd6326c4a98272.tar gsoc2013-evolution-c7553c75aa2b11b42df7031773dd6326c4a98272.tar.gz gsoc2013-evolution-c7553c75aa2b11b42df7031773dd6326c4a98272.tar.bz2 gsoc2013-evolution-c7553c75aa2b11b42df7031773dd6326c4a98272.tar.lz gsoc2013-evolution-c7553c75aa2b11b42df7031773dd6326c4a98272.tar.xz 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/e-summary.c')
-rw-r--r-- | my-evolution/e-summary.c | 12 |
1 files changed, 12 insertions, 0 deletions
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; |