mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix Invalid stack frame exception
This commit is contained in:
@@ -188,15 +188,20 @@ public class ThreadDumpAction extends AnAction implements AnAction.TransparentUp
|
||||
|
||||
for (int i = 0, framesSize = frames.size(); i < framesSize; i++) {
|
||||
final StackFrame stackFrame = frames.get(i);
|
||||
final Location location = stackFrame.location();
|
||||
buffer.append("\n\t ").append(renderLocation(location));
|
||||
try {
|
||||
final Location location = stackFrame.location();
|
||||
buffer.append("\n\t ").append(renderLocation(location));
|
||||
|
||||
final List<ObjectReference> monitors = lockedAt.get(i);
|
||||
if (monitors != null) {
|
||||
for (ObjectReference monitor : monitors) {
|
||||
buffer.append("\n\t - ").append(renderLockedObject(monitor));
|
||||
final List<ObjectReference> monitors = lockedAt.get(i);
|
||||
if (monitors != null) {
|
||||
for (ObjectReference monitor : monitors) {
|
||||
buffer.append("\n\t - ").append(renderLockedObject(monitor));
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (InvalidStackFrameException e) {
|
||||
buffer.append("\n\t Invalid stack frame: ").append(e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (IncompatibleThreadStateException e) {
|
||||
|
||||
Reference in New Issue
Block a user