1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fixed a bug causing RequestMonitor.done() to be called twice (bug 196527).

This commit is contained in:
Pawel Piech 2007-07-14 03:04:58 +00:00
parent 7d9261861d
commit 575d660c1b

View file

@ -453,7 +453,7 @@ abstract public class AbstractDMVMLayoutNode<V extends IDMData> extends Abstract
// Check for an empty list of elements. If it's empty then we
// don't have to call the children nodes, so return here.
// No need to propagate error, there's no means or need to display it.
if (!getStatus().isOK()) {
if (!getStatus().isOK() || getData().isEmpty()) {
requestMonitor.done();
return;
}
@ -466,6 +466,7 @@ abstract public class AbstractDMVMLayoutNode<V extends IDMData> extends Abstract
if (i == getData().size()) {
// Element not found, no need to generate the delta.
requestMonitor.done();
return;
}
VMDelta delta = parentDelta.addNode(vmc, nodeOffset + i, IModelDelta.NO_CHANGE);