mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-17 05:55:22 +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
|
// See https://bugs.eclipse.org/bugs/show_bug.cgi?id=202109
|
||||||
// Instead of checking getStatus().isOK(), check getData() != null.
|
// Instead of checking getStatus().isOK(), check getData() != null.
|
||||||
if (getData() != null) {
|
if (getData() != null) {
|
||||||
for (int i = 0; i < elementsLength; i++) {
|
for (int i = 0; i < elementsLength && i < getData().size(); i++) {
|
||||||
update.setChild(getData().get(i), elementsStartIdx + nodeStartIdx + i);
|
Object child = getData().get(i);
|
||||||
|
if (child != null) {
|
||||||
|
update.setChild(getData().get(i), elementsStartIdx + nodeStartIdx + i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elementsMultiRequestMon.requestMonitorDone(this);
|
elementsMultiRequestMon.requestMonitorDone(this);
|
||||||
|
|
Loading…
Add table
Reference in a new issue