From 8e80a91cc2ca4b9a08c0872d256cb6a1a7c0e35b Mon Sep 17 00:00:00 2001 From: haileyajohnson Date: Thu, 11 Jan 2024 15:20:54 -0800 Subject: [PATCH] test --- cdm/core/src/main/java/ucar/nc2/dataset/VariableDS.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdm/core/src/main/java/ucar/nc2/dataset/VariableDS.java b/cdm/core/src/main/java/ucar/nc2/dataset/VariableDS.java index 23c9374843..b918c0e8c1 100644 --- a/cdm/core/src/main/java/ucar/nc2/dataset/VariableDS.java +++ b/cdm/core/src/main/java/ucar/nc2/dataset/VariableDS.java @@ -296,7 +296,7 @@ Array convert(Array data, Set enhancements) { Array out = Array.factory(convertedType, data.getShape()); IndexIterator iterOut = out.getIndexIterator(); - for (int i = 0; i < dataArray.length; i++) { + for (int i = 0; i < data.getSize(); i++) { iterOut.setObjectNext(dataArray[i]); } return out;