From f588b4ffedc140a2ded75617fce656eac39466a4 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Sun, 17 Feb 2008 20:25:38 +0000 Subject: ** Fix for bnc #159736. Patch from OpenSUSE. 2008-02-18 Srinivasa Ragavan ** Fix for bnc #159736. Patch from OpenSUSE. * e-shell-nm.c: (e_shell_network_monitor): svn path=/trunk/; revision=35034 --- shell/e-shell-nm.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'shell/e-shell-nm.c') 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); -- cgit v1.2.3