Skip to content

Commit

Permalink
Merge pull request #152 from TileDB-Inc/fix-validity-element-count-
Browse files Browse the repository at this point in the history
Set element count to 0 if the byteMap size is nil
  • Loading branch information
snagles authored Jan 26, 2021
2 parents 8b1d78c + 452dcd9 commit 04dd40a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query.go
Original file line number Diff line number Diff line change
Expand Up @@ -2265,7 +2265,7 @@ func (q *Query) BufferSizeNullable(attributeName string) (uint64, uint64, error)
}

var validityNumElements uint64
if validityByteMap == nil {
if validityByteMapSize == nil {
validityNumElements = 0
} else {
validityNumElements = uint64(*validityByteMapSize) / validityTypeSize
Expand Down

0 comments on commit 04dd40a

Please sign in to comment.