1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

The 'type' argument of the 'getVariableObjectAsArray' method shouldn't be null.

This commit is contained in:
Mikhail Khodjaiants 2003-08-11 21:22:47 +00:00
parent 8b9da1bd68
commit 437bb002d3
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2003-08-11 Mikhail Khodjaiants
* src/org/eclipse/cdt/debug/mi/core/cdi/model/type/ArrayValue.java:
The 'type' argument of the 'getVariableObjectAsArray' method shouldn't be null.
2003-08-11 Mikhail Khodjaiants
* src/org/eclipse/cdt/debug/mi/core/cdi/variableManager.java
Mistype in the 'CheckType' method.

View file

@ -56,7 +56,7 @@ public class ArrayValue extends DerivedValue implements ICDIArrayValue {
ICDITarget target = getTarget();
Session session = (Session) (target.getSession());
ICDIVariableManager mgr = session.getVariableManager();
ICDIVariableObject vo = mgr.getVariableObjectAsArray(variable, null, index, length);
ICDIVariableObject vo = mgr.getVariableObjectAsArray(variable, variable.getTypeName(), index, length);
return mgr.createVariable(vo).getValue().getVariables();
}
}