Fail with an exception when loading the value of field of a broken class. Fixes ...
authorRodrigo Kumpera <kumpera@gmail.com>
Fri, 17 May 2013 14:59:20 +0000 (10:59 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Fri, 17 May 2013 15:03:39 +0000 (11:03 -0400)
commite6d52855166ba81896b6b69ab84d929457a3affe
tree5595ab4064858c8532544d1776801df2bff77e5a
parent872be6349ba30b573678e81276b2db2bb7f688a8
Fail with an exception when loading the value of field of a broken class. Fixes #11362

* object.c (mono_field_get_value_object): If the field belongs to a class with a broken
vtable, lets raise an exception instead of printing a message and returning NULL.

Fixes #11362
mono/metadata/object.c