Skip to content

Commit ac82b06

Browse files
committed
return size 0 if file is not open
1 parent 9b91ce0 commit ac82b06

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/data_structures/APR/particles/LazyData.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ class LazyData {
120120

121121
uint64_t dataset_size(){
122122
std::vector<uint64_t> dims = dataSet.get_dimensions();
123+
if(dims.empty()) return 0;
123124
return dims[0];
124125
}
125126

0 commit comments

Comments
 (0)