24 lines
774 B
Diff
24 lines
774 B
Diff
--- shell/e-shell-nm.c.orig 2006-03-13 01:06:30.533701917 +0100
|
|
+++ shell/e-shell-nm.c 2006-03-13 01:09:37.587986006 +0100
|
|
@@ -54,11 +54,17 @@ static DBusHandlerResult e_shell_network
|
|
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);
|
|
|