diff options
-rw-r--r-- | src/empathy-event-manager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c index dbb95cda9..27f8a0bdb 100644 --- a/src/empathy-event-manager.c +++ b/src/empathy-event-manager.c @@ -237,7 +237,8 @@ event_manager_add (EmpathyEventManager *manager, event->public.header = g_strdup (header); event->public.message = g_strdup (message); event->public.must_ack = (func != NULL); - event->public.handler_instance = approval->handler_instance; + if (approval != NULL) + event->public.handler_instance = approval->handler_instance; event->inhibit = FALSE; event->func = func; event->user_data = user_data; |