X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Fmini-runtime.c;h=a3f4883f74d5fc7ffc43c20047a7f5d254dcbc37;hb=79e94c43dcb8576f6e8c817ce13ae7bb2c196538;hp=3b74b398e1bfed72b0773d0216b02bfb7208313a;hpb=787faec0048b660f3aede97b5400bef23ba88007;p=mono.git diff --git a/mono/mini/mini-runtime.c b/mono/mini/mini-runtime.c index 3b74b398e1b..a3f4883f74d 100644 --- a/mono/mini/mini-runtime.c +++ b/mono/mini/mini-runtime.c @@ -2622,6 +2622,8 @@ mono_jit_runtime_invoke (MonoMethod *method, void *obj, void **params, MonoObjec #endif error_init (error); + if (exc) + *exc = NULL; if (obj == NULL && !(method->flags & METHOD_ATTRIBUTE_STATIC) && !method->string_ctor && (method->wrapper_type == 0)) { g_warning ("Ignoring invocation of an instance method on a NULL instance.\n");