Fix exception regression.

Change-Id: Ibb977d16bfc31ccce9c1508bc9a240ff66c2f40c
diff --git a/src/thread.cc b/src/thread.cc
index 82ee631..2fd3a5a 100644
--- a/src/thread.cc
+++ b/src/thread.cc
@@ -1209,8 +1209,8 @@
   ScopedJniThreadState ts(env);
 
   // Build internal stack trace
-  BuildInternalStackTraceVisitor build_trace_visitor(depth);
-  if (!build_trace_visitor.Init(skip_depth, ts)) {
+  BuildInternalStackTraceVisitor build_trace_visitor(skip_depth);
+  if (!build_trace_visitor.Init(depth, ts)) {
     return NULL;  // Allocation failed
   }
   WalkStack(&build_trace_visitor);