Skip to content

Commit

Permalink
Fix stacktrace test for opt builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
olonho committed Feb 20, 2019
1 parent 5a41e9b commit f34594b
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ fun main(args : Array<String>) {
try {
functionB()
} catch (e: Throwable) {
val st = e.getStackTrace()
repeat(3) {
checkStringFormat(st[it])
val stacktrace = e.getStackTrace()
if (stacktrace.size >= 3) {
repeat(3) {
checkStringFormat(stacktrace[it])
}
}
}
}
}

0 comments on commit f34594b

Please sign in to comment.