Skip to content

Commit b5945e1

Browse files
committed
Fix null check
1 parent da541d1 commit b5945e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Client/ClientBase.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ class ClientBase
107107

108108
std::span<char> getQueryOutputSpan()
109109
{
110+
if (!query_result_memory || !query_result_buf)
111+
return {};
110112
auto size = query_result_buf->count();
111113
return std::span<char>(query_result_memory->begin(), size);
112114
}

0 commit comments

Comments
 (0)