Skip to content

Commit 8c43855

Browse files
author
haileyajohnson
committed
fix failing tests
1 parent 0d0952a commit 8c43855

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cdm/core/src/main/java/ucar/nc2/iosp/IospHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ public static Object makePrimitiveArray(int size, DataType dataType, Object fill
720720
if (dataType.getPrimitiveClassType() == byte.class || (dataType == DataType.CHAR) || dataType == DataType.BOOLEAN) {
721721
byte[] pa = new byte[size];
722722
byte val;
723-
if (dataType == DataType.CHAR) {
723+
if (fillValue instanceof String) {
724724
byte[] bytes = ((String) fillValue).getBytes();
725725
val = bytes.length > 0 ? ((String) fillValue).getBytes()[0] : 0;
726726
} else {

0 commit comments

Comments
 (0)