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:
parent
7d9261861d
commit
575d660c1b
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue