[empathy] Simplify validation.



commit 325dee46c2ea53bdc24802fa264b632b8b704e5b
Author: Travis Reitter <treitter gmail com>
Date:   Fri Jul 9 13:55:23 2010 -0700

    Simplify validation.

 libempathy-gtk/empathy-individual-menu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c
index a3cacda..b39200d 100644
--- a/libempathy-gtk/empathy-individual-menu.c
+++ b/libempathy-gtk/empathy-individual-menu.c
@@ -245,7 +245,7 @@ empathy_individual_chat_menu_item_activated (GtkMenuItem *item,
 
   contact = empathy_contact_dup_from_folks_individual (individual);
 
-  g_return_if_fail (EMPATHY_IS_CONTACT (contact));
+  g_return_if_fail (contact != NULL);
 
   empathy_dispatcher_chat_with_contact (contact, gtk_get_current_event_time (),
       NULL, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]