mirror of
https://github.com/corda/corda.git
synced 2025-01-31 08:25:50 +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);
|
sb.append(" at ").append(trace[i].toString()).append(nl);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getCause() != null) {
|
Throwable printCause = getCause();
|
||||||
|
if (printCause != null) {
|
||||||
sb.append("caused by: ");
|
sb.append("caused by: ");
|
||||||
getCause().printStackTrace(sb, nl);
|
printCause.printStackTrace(sb, nl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user