We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a5b9b0 commit 9e3d919Copy full SHA for 9e3d919
src/docio.cc
@@ -772,6 +772,10 @@ static int64_t _docio_read_length(struct docio_handle *handle,
772
err_log_callback *log_callback,
773
bool read_on_cache_miss)
774
{
775
+ if (handle == NULL || handle->file == NULL){
776
+ fdb_log(log_callback, FDB_RESULT_INVALID_ARGS, "Error in reading a doc length");
777
+ return FDB_RESULT_INVALID_ARGS;
778
+ }
779
size_t blocksize = handle->file->blocksize;
780
size_t real_blocksize = blocksize;
781
bool non_consecutive = ver_non_consecutive_doc(handle->file->version);
0 commit comments