mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bugzilla 159683
Fixed the cache manager to it was checking the status before dereferencing getdata(0 which migit be null.
This commit is contained in:
parent
4c03741125
commit
d50ed203b6
1 changed files with 3 additions and 3 deletions
|
@ -120,7 +120,7 @@ public abstract class VMCache
|
||||||
updates[i] = new VMElementsCountUpdate(update, new DataRequestMonitor<Integer>(fExecutor, null)
|
updates[i] = new VMElementsCountUpdate(update, new DataRequestMonitor<Integer>(fExecutor, null)
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
protected void handleCompleted()
|
protected void handleOK()
|
||||||
{
|
{
|
||||||
fChildrenCounts.put(update.getElement(), this.getData());
|
fChildrenCounts.put(update.getElement(), this.getData());
|
||||||
update.setChildCount(this.getData());
|
update.setChildCount(this.getData());
|
||||||
|
@ -223,7 +223,7 @@ public abstract class VMCache
|
||||||
new DataRequestMonitor<List<Object>>(fExecutor, null)
|
new DataRequestMonitor<List<Object>>(fExecutor, null)
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
protected void handleCompleted()
|
protected void handleOK()
|
||||||
{
|
{
|
||||||
for(int j = 0; j < update.getLength(); j++)
|
for(int j = 0; j < update.getLength(); j++)
|
||||||
{
|
{
|
||||||
|
@ -256,7 +256,7 @@ public abstract class VMCache
|
||||||
service.getModelData(dmc,
|
service.getModelData(dmc,
|
||||||
new DataRequestMonitor<IDMData>(executor, null) {
|
new DataRequestMonitor<IDMData>(executor, null) {
|
||||||
@Override
|
@Override
|
||||||
public void handleCompleted() {
|
public void handleOK() {
|
||||||
fData.put(dmc, getData());
|
fData.put(dmc, getData());
|
||||||
rm.setData(getData());
|
rm.setData(getData());
|
||||||
rm.done();
|
rm.done();
|
||||||
|
|
Loading…
Add table
Reference in a new issue