From 437bb002d3309e15777065089c1ab3e338ec9547 Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Mon, 11 Aug 2003 21:22:47 +0000 Subject: [PATCH] The 'type' argument of the 'getVariableObjectAsArray' method shouldn't be null. --- debug/org.eclipse.cdt.debug.mi.core/ChangeLog | 4 ++++ .../eclipse/cdt/debug/mi/core/cdi/model/type/ArrayValue.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog index 4db0e6c0d2d..1022b5a92b3 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog @@ -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. diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/type/ArrayValue.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/type/ArrayValue.java index 7be23d95f13..5d4482bb617 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/type/ArrayValue.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/type/ArrayValue.java @@ -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(); } }