Merge pull request #5120 from lambdageek/bug-57744
[mono.git] / mono / metadata / icall.c
index 9692845d19089e457199d61da221fa3df58f6cbc..76ccc633aacb095aa61157cda783347c1df962ee 100644 (file)
@@ -5465,7 +5465,7 @@ image_get_type (MonoDomain *domain, MonoImage *image, MonoTableInfo *tdef, int t
 
                MONO_HANDLE_ARRAY_SETREF (res, count, rt);
        } else {
-               MonoException *ex = mono_error_convert_to_exception (error);
+               MonoException *ex = mono_error_convert_to_exception (&klass_error);
                MONO_HANDLE_ARRAY_SETRAW (exceptions, count, ex);
        }
        HANDLE_FUNCTION_RETURN ();