Merge pull request #1668 from alexanderkyte/bug1856
[mono.git] / mono / mini / exceptions-s390x.c
index 78fd645c7859aebac069ccb3616e3ab256880b55..ac1d0f2c921c6c8003529246f76a8a271ba77795 100644 (file)
@@ -259,8 +259,10 @@ throw_exception (MonoObject *exc, unsigned long ip, unsigned long sp,
        
        if (mono_object_isinst (exc, mono_defaults.exception_class)) {
                MonoException *mono_ex = (MonoException*)exc;
-               if (!rethrow)
+               if (!rethrow) {
                        mono_ex->stack_trace = NULL;
+                       mono_ex->trace_ips = NULL;
+               }
        }
 //     mono_arch_handle_exception (&ctx, exc, FALSE);
        mono_handle_exception (&ctx, exc);