assertion when project is initialized

assert EDT if only breakpoints are really removed
This commit is contained in:
Dmitry Avdeev
2012-10-19 13:04:31 +04:00
parent c9193e6cd8
commit 84f621e7e3
@@ -799,11 +799,9 @@ public class BreakpointManager implements JDOMExternalizable {
}
private void removeInvalidBreakpoints() {
ApplicationManager.getApplication().assertIsDispatchThread();
ArrayList<Breakpoint> toDelete = new ArrayList<Breakpoint>();
for (Iterator it = getBreakpoints().listIterator(); it.hasNext();) {
Breakpoint breakpoint = (Breakpoint)it.next();
for (Breakpoint breakpoint : getBreakpoints()) {
if (!breakpoint.isValid()) {
toDelete.add(breakpoint);
}