* appdomain.c (mono_domain_has_type_resolve): Check for
NULL domain objects to make pedump happy.
* object.c (mono_field_get_value): Assert on NULL object.
It's the caller resposibility to check for this.
* object.c (mono_field_get_value_object): Ditto.
Fixes #601384.
svn path=/trunk/mono/; revision=156924
+2010-05-07 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * appdomain.c (mono_domain_has_type_resolve): Check for
+ NULL domain objects to make pedump happy.
+
+ * object.c (mono_field_get_value): Assert on NULL object.
+ It's the caller resposibility to check for this.
+
+ * object.c (mono_field_get_value_object): Ditto.
+
+ Fixes #601384.
+
2010-05-07 Rodrigo Kumpera <rkumpera@novell.com>
* icall.c (ves_icall_type_is_subtype_of): Non iface subtype
g_assert (field);
}
+ /*pedump doesn't create an appdomin, so the domain object doesn't exist.*/
+ if (!domain->domain)
+ return FALSE;
+
mono_field_get_value ((MonoObject*)(domain->domain), field, &o);
return o != NULL;
}
{
void *src;
+ g_assert (obj);
+
g_return_if_fail (!(field->type->attrs & FIELD_ATTRIBUTE_STATIC));
src = (char*)obj + field->offset;
if (!vtable->initialized)
mono_runtime_class_init (vtable);
}
+ } else {
+ g_assert (obj);
}
if (is_ref) {