Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[runtime] Don't call mono_raise_exception in ves_icall_Mono_Runtime_G…
…etNativeStackTrace
  • Loading branch information
lambdageek committed Apr 6, 2016
1 parent 4a71f9e commit 0e830ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mono/metadata/exception.c
Expand Up @@ -940,8 +940,10 @@ ves_icall_Mono_Runtime_GetNativeStackTrace (MonoException *exc)
{
char *trace;
MonoString *res;
if (!exc)
mono_raise_exception (mono_get_exception_argument_null ("exception"));
if (!exc) {
mono_set_pending_exception (mono_get_exception_argument_null ("exception"));
return NULL;
}

trace = mono_exception_get_native_backtrace (exc);
res = mono_string_new (mono_domain_get (), trace);
Expand Down

0 comments on commit 0e830ba

Please sign in to comment.