From be4dca14aedcd3fc3482e593d1bcce69fe53d0bd Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 23 Sep 2011 16:00:58 -0500 Subject: Ensure the class is correct --- libdbusmenu-glib/menuitem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdbusmenu-glib') diff --git a/libdbusmenu-glib/menuitem.c b/libdbusmenu-glib/menuitem.c index 4e037ee..c9c7736 100644 --- a/libdbusmenu-glib/menuitem.c +++ b/libdbusmenu-glib/menuitem.c @@ -1730,7 +1730,7 @@ dbusmenu_menuitem_send_about_to_show (DbusmenuMenuitem * mi, void (*cb) (Dbusmen #endif DbusmenuMenuitemClass * class = DBUSMENU_MENUITEM_GET_CLASS(mi); - if (class->send_about_to_show != NULL) { + if (class != NULL && class->send_about_to_show != NULL) { return class->send_about_to_show(mi, cb, cb_data); } else if (cb != NULL) { cb(mi, cb_data); -- cgit v1.2.3