| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a25bbc5 commit 3158fce
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -630,7 +630,16 @@ public M parseResponse(M request) { | |||
| 630 | 630 | res.put("trace:throw", t.getClass().getName()); | |
| 631 | 631 | ||
| 632 | 632 | if (IS_RETURN_STACK_TRACE) { | |
| 633 | - res.put("trace:stack", t.getStackTrace()); | ||
| 633 | + L list = JSON.createJSONArray(); | ||
| 634 | + | ||
| 635 | + StackTraceElement[] traces = t.getStackTrace(); | ||
| 636 | + if (traces != null) { // && traces.length > 0) { | ||
| 637 | + for (StackTraceElement trace : traces) { | ||
| 638 | + list.add(trace == null ? null : trace.toString()); | ||
| 639 | + } | ||
| 640 | + } | ||
| 641 | + | ||
| 642 | + res.put("trace:stack", list); | ||
| 634 | 643 | } | |
| 635 | 644 | } | |
| 636 | 645 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments