2010-07-28 Rodrigo Kumpera <rkumpera@novell.com>
* object.c (mono_get_delegate_invoke): Don't assert if
the Invoke method is not found. This can happen with
broken types and it's the caller resposibility to deal
with a null return.
Fixes #553403
+2010-07-28 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * object.c (mono_get_delegate_invoke): Don't assert if
+ the Invoke method is not found. This can happen with
+ broken types and it's the caller resposibility to deal
+ with a null return.
+
+ Fixes #553403
+
2010-07-28 Rodrigo Kumpera <rkumpera@novell.com>
* class.c (mono_assembly_name_from_token): Handle
* mono_get_delegate_invoke:
* @klass: The delegate class
*
- * Returns: the MonoMethod for the "Invoke" method in the delegate klass
+ * Returns: the MonoMethod for the "Invoke" method in the delegate klass or NULL if @klass is a broken delegate type
*/
MonoMethod *
mono_get_delegate_invoke (MonoClass *klass)
if (klass->exception_type)
return NULL;
im = mono_class_get_method_from_name (klass, "Invoke", -1);
- g_assert (im);
-
return im;
}