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)
|
||||
{
|
||||
@Override
|
||||
protected void handleCompleted()
|
||||
protected void handleOK()
|
||||
{
|
||||
fChildrenCounts.put(update.getElement(), this.getData());
|
||||
update.setChildCount(this.getData());
|
||||
|
@ -223,7 +223,7 @@ public abstract class VMCache
|
|||
new DataRequestMonitor<List<Object>>(fExecutor, null)
|
||||
{
|
||||
@Override
|
||||
protected void handleCompleted()
|
||||
protected void handleOK()
|
||||
{
|
||||
for(int j = 0; j < update.getLength(); j++)
|
||||
{
|
||||
|
@ -256,7 +256,7 @@ public abstract class VMCache
|
|||
service.getModelData(dmc,
|
||||
new DataRequestMonitor<IDMData>(executor, null) {
|
||||
@Override
|
||||
public void handleCompleted() {
|
||||
public void handleOK() {
|
||||
fData.put(dmc, getData());
|
||||
rm.setData(getData());
|
||||
rm.done();
|
||||
|
|
Loading…
Add table
Reference in a new issue