* class.c (mono_class_get_vtable_entry): Avoid a crash if mono_class_setup_vtable ()
fails.
svn path=/trunk/mono/; revision=159637
+2010-06-28 Zoltan Varga <vargaz@gmail.com>
+
+ * class.c (mono_class_get_vtable_entry): Avoid a crash if mono_class_setup_vtable ()
+ fails.
+
2010-06-25 Mark Probst <mark.probst@gmail.com>
* class.c (mono_class_inflate_generic_method_full_checked): Added
/*
* mono_class_get_vtable_entry:
*
- * Returns class->vtable [offset], computing it if neccesary.
+ * Returns class->vtable [offset], computing it if neccesary. Returns NULL on failure.
* LOCKING: Acquires the loader lock.
*/
MonoMethod*
m = mono_class_inflate_generic_method_full (m, class, mono_class_get_context (class));
} else {
mono_class_setup_vtable (class);
+ if (class->exception_type)
+ return NULL;
m = class->vtable [offset];
}