aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-nm.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2008-02-18 04:25:38 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2008-02-18 04:25:38 +0800
commitf588b4ffedc140a2ded75617fce656eac39466a4 (patch)
treed8062b95f1de653a0c76b93ba566edbdf1e0d0c1 /shell/e-shell-nm.c
parentb1dbba827a0406988b673f0eb786e41db978a073 (diff)
downloadgsoc2013-evolution-f588b4ffedc140a2ded75617fce656eac39466a4.tar.gz
gsoc2013-evolution-f588b4ffedc140a2ded75617fce656eac39466a4.tar.zst
gsoc2013-evolution-f588b4ffedc140a2ded75617fce656eac39466a4.zip
** Fix for bnc #159736. Patch from OpenSUSE.
2008-02-18 Srinivasa Ragavan <sragavan@novell.com> ** Fix for bnc #159736. Patch from OpenSUSE. * e-shell-nm.c: (e_shell_network_monitor): svn path=/trunk/; revision=35034
Diffstat (limited to 'shell/e-shell-nm.c')
-rw-r--r--shell/e-shell-nm.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/shell/e-shell-nm.c b/shell/e-shell-nm.c
index de06ed2d8a..d973a26b22 100644
--- a/shell/e-shell-nm.c
+++ b/shell/e-shell-nm.c
@@ -64,11 +64,17 @@ e_shell_network_monitor (DBusConnection *connection G_GNUC_UNUSED,
DBusError error;
const char *object;
ShellLineStatus status;
- EShellWindow *window = E_SHELL_WINDOW (user_data);
- EShell *shell = e_shell_window_peek_shell ((EShellWindow *) user_data);
+ EShellWindow *window = NULL;
+ EShell *shell = NULL;
GNOME_Evolution_ShellState shell_state;
EShellLineStatus line_status;
+ if (!user_data || !E_IS_SHELL_WINDOW (user_data))
+ return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
+
+ window = E_SHELL_WINDOW (user_data);
+ shell = e_shell_window_peek_shell (window);
+
dbus_error_init (&error);
object = dbus_message_get_path (message);