Merge pull request #3684 from lambdageek/dev-monoerror-poolbox
[mono.git] / mono / utils / mono-error.c
index 6ef0381f440e85b510151ffc8c510627cb1a165e..a59f2a123fb112f62d245290be57a7c909920f8b 100644 (file)
@@ -635,7 +635,7 @@ mono_error_prepare_exception (MonoError *oerror, MonoError *error_out)
                        }
 
                        exception = mono_exception_from_name_two_strings_checked (mono_get_corlib (), "System", "TypeLoadException", type_name, assembly_name, error_out);
-                       if (exception)
+                       if (exception && error->full_message != NULL && strcmp (error->full_message, ""))
                                set_message_on_exception (exception, error, error_out);
                } else {
                        exception = mono_exception_from_name_msg (mono_defaults.corlib, "System", "TypeLoadException", error->full_message);