mirror of
https://github.com/corda/corda.git
synced 2025-01-19 03:06:36 +00:00
More defensive if getCause() changes
This commit is contained in:
parent
8c15c14260
commit
809b3493e4
@ -112,9 +112,10 @@ public class Throwable implements Serializable {
|
||||
sb.append(" at ").append(trace[i].toString()).append(nl);
|
||||
}
|
||||
|
||||
if (getCause() != null) {
|
||||
Throwable printCause = getCause();
|
||||
if (printCause != null) {
|
||||
sb.append("caused by: ");
|
||||
getCause().printStackTrace(sb, nl);
|
||||
printCause.printStackTrace(sb, nl);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user