Index: yelp-2.24.0/src/yelp-document.c =================================================================== --- yelp-2.24.0.orig/src/yelp-document.c 2009-02-28 13:42:57.000000000 -0500 +++ yelp-2.24.0/src/yelp-document.c 2009-02-28 13:45:15.000000000 -0500 @@ -214,7 +214,8 @@ gint req_id; static gint request_id = 0; - g_assert (document != NULL && YELP_IS_DOCUMENT (document)); + if (!YELP_IS_DOCUMENT (document)) + return 0; debug_print (DB_FUNCTION, "entering\n"); debug_print (DB_ARG, " page_id = \"%s\"\n", page_id); @@ -272,8 +273,8 @@ YelpDocumentPriv *priv; Request *request; - g_assert (document != NULL && YELP_IS_DOCUMENT (document)); - + g_return_if_fail (document != NULL && YELP_IS_DOCUMENT (document)); + debug_print (DB_FUNCTION, "entering\n"); debug_print (DB_ARG, " req_id = %i\n", req_id);