mirror of
https://github.com/corda/corda.git
synced 2025-02-08 20:10:22 +00:00
return empty stack trace for thread which isn't running
This commit is contained in:
parent
53588b94f3
commit
a68742200b
@ -186,7 +186,11 @@ public class Thread implements Runnable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public StackTraceElement[] getStackTrace() {
|
public StackTraceElement[] getStackTrace() {
|
||||||
return Throwable.resolveTrace(getStackTrace(peer));
|
long p = peer;
|
||||||
|
if (p == 0) {
|
||||||
|
return new StackTraceElement[0];
|
||||||
|
}
|
||||||
|
return Throwable.resolveTrace(getStackTrace(p));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static native Object getStackTrace(long peer);
|
private static native Object getStackTrace(long peer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user