From 50ae6746df3e1b67f9455ba7786428385753f0b3 Mon Sep 17 00:00:00 2001 From: Aleksey Kliger Date: Thu, 25 Feb 2016 17:26:36 -0500 Subject: [PATCH] [reflection] Expect no loader error in mono_reflection_get_custom_attrs_by_type anymore --- mono/metadata/reflection.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mono/metadata/reflection.c b/mono/metadata/reflection.c index e8c29413b9e..dcdd090db33 100644 --- a/mono/metadata/reflection.c +++ b/mono/metadata/reflection.c @@ -10077,11 +10077,7 @@ mono_reflection_get_custom_attrs_by_type (MonoObject *obj, MonoClass *attr_klass if (!cinfo->cached) mono_custom_attrs_free (cinfo); } else { - /* FIXME add MonoError to mono_reflection_get_custom_attrs_info */ - if (mono_loader_get_last_error ()) { - mono_error_set_from_loader_error (error); - return NULL; - } + mono_loader_assert_no_error (); result = mono_array_new_cached (mono_domain_get (), mono_defaults.attribute_class, 0); } -- 2.25.1