Skip to content

Commit f228420

Browse files
committed
fix reading chunked dataset where btree address has not been allocated yet (empty)
1 parent e26caee commit f228420

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

esm/dataobjects.js

+3
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,9 @@ export class DataObjects {
722722
_get_chunked_data(offset) {
723723
//""" Return data which is chunked. """
724724
this._get_chunk_params();
725+
if (this._chunk_address == UNDEFINED_ADDRESS) {
726+
return [];
727+
}
725728
var chunk_btree = new BTreeV1RawDataChunks(
726729
this.fh, this._chunk_address, this._chunk_dims);
727730
let data = chunk_btree.construct_data_from_chunks(

0 commit comments

Comments
 (0)