object.c (mono_delegate_ctor_with_method): Guard against null method.
svn path=/trunk/mono/; revision=141699
the runtime coreclr tests (without an infinite recursion when
throwing an exception).
+2009-09-10 Rodrigo Kumpera <rkumpera@novell.com>
+
+ object.c (mono_delegate_ctor_with_method): Guard against null method.
+
2009-09-10 Rodrigo Kumpera <rkumpera@novell.com>
* marshal.c (mono_marshal_get_xappdomain_dispatch): Add an assert
method = mono_marshal_get_remoting_invoke (method);
delegate->method_ptr = mono_compile_method (method);
MONO_OBJECT_SETREF (delegate, target, target);
- } else if (mono_method_signature (method)->hasthis && method->klass->valuetype) {
+ } else if (method && mono_method_signature (method)->hasthis && method->klass->valuetype) {
method = mono_marshal_get_unbox_wrapper (method);
delegate->method_ptr = mono_compile_method (method);
MONO_OBJECT_SETREF (delegate, target, target);