diff --git a/esm/dataobjects.js b/esm/dataobjects.js index 4f21abc..607ce0b 100644 --- a/esm/dataobjects.js +++ b/esm/dataobjects.js @@ -722,6 +722,9 @@ export class DataObjects { _get_chunked_data(offset) { //""" Return data which is chunked. """ this._get_chunk_params(); + if (this._chunk_address == UNDEFINED_ADDRESS) { + return []; + } var chunk_btree = new BTreeV1RawDataChunks( this.fh, this._chunk_address, this._chunk_dims); let data = chunk_btree.construct_data_from_chunks(