mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
[202109] Fixed a bug in the update modes cache which caused occasional invalid updates.
This commit is contained in:
parent
d088dbc842
commit
e83d9b7f35
1 changed files with 5 additions and 2 deletions
|
@ -325,8 +325,11 @@ public class DefaultVMContentProviderStrategy implements IElementContentProvider
|
|||
// See https://bugs.eclipse.org/bugs/show_bug.cgi?id=202109
|
||||
// Instead of checking getStatus().isOK(), check getData() != null.
|
||||
if (getData() != null) {
|
||||
for (int i = 0; i < elementsLength; i++) {
|
||||
update.setChild(getData().get(i), elementsStartIdx + nodeStartIdx + i);
|
||||
for (int i = 0; i < elementsLength && i < getData().size(); i++) {
|
||||
Object child = getData().get(i);
|
||||
if (child != null) {
|
||||
update.setChild(getData().get(i), elementsStartIdx + nodeStartIdx + i);
|
||||
}
|
||||
}
|
||||
}
|
||||
elementsMultiRequestMon.requestMonitorDone(this);
|
||||
|
|
Loading…
Add table
Reference in a new issue