Skip to content

Commit

Permalink
fix null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
Hailey Johnson committed Mar 15, 2024
1 parent 16b3027 commit 31b8087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdm/core/src/main/java/ucar/nc2/dataset/VariableDS.java
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ public Array getMissingDataArray(int[] shape) {
}

Array array = Array.factoryConstant(getDataType(), shape, storage);
if (convertMissing.hasFillValue()) {
if (convertMissing != null && convertMissing.hasFillValue()) {
array.setObject(0, convertMissing.getFillValue());
}
return array;
Expand Down

0 comments on commit 31b8087

Please sign in to comment.