IDEA-121126 Debugger: mute breakpoints: Throwable at ApplicationImpl.assertReadAccessAllowed()

This commit is contained in:
Egor.Ushakov
2014-02-24 12:43:59 +04:00
parent c388cfadf6
commit b4df1c97b5

View File

@@ -757,7 +757,12 @@ public class BreakpointManager {
if (myBreakpointsListForIteration == null) {
myBreakpointsListForIteration = new ArrayList<Breakpoint>(myBreakpoints.size());
for (XBreakpoint<?> xBreakpoint : getXBreakpointManager().getAllBreakpoints()) {
XBreakpoint<?>[] xBreakpoints = ApplicationManager.getApplication().runReadAction(new Computable<XBreakpoint<?>[]>() {
public XBreakpoint<?>[] compute() {
return getXBreakpointManager().getAllBreakpoints();
}
});
for (XBreakpoint<?> xBreakpoint : xBreakpoints) {
if (isJavaType(xBreakpoint)) {
Breakpoint breakpoint = myBreakpoints.get(xBreakpoint);
if (breakpoint == null) {