mirror of
https://github.com/corda/corda.git
synced 2025-06-15 21:58:17 +00:00
More defensive if getCause() changes
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user