mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +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() {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user