diff --git a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/ArrayValue.cs b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/ArrayValue.cs index 163fd4ee42..0721f27cc7 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/ArrayValue.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/ArrayValue.cs @@ -93,8 +93,10 @@ namespace Debugger } } - Variable GetItem(uint[] indices, ValueGetter getter) + Variable GetItem(uint[] itemIndices, ValueGetter getter) { + uint[] indices = (uint[])itemIndices.Clone(); + if (indices.Length != rank) throw new DebuggerException("Given indicies does not match array size."); string elementName = "[";