From 94a0899bd0c0b15179096c2b2cf48ad7e3eb701c Mon Sep 17 00:00:00 2001 From: Przemyslaw Delewski <102958445+pdelewski@users.noreply.github.com> Date: Fri, 17 May 2024 12:34:03 +0200 Subject: [PATCH] Check if table is nil (#135) --- quesma/quesma/search.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quesma/quesma/search.go b/quesma/quesma/search.go index 506c511e7..50ce01c2c 100644 --- a/quesma/quesma/search.go +++ b/quesma/quesma/search.go @@ -205,7 +205,9 @@ func (q *QueryRunner) handleSearchCommon(ctx context.Context, indexPattern strin var count int table, _ := tables.Load(resolvedTableName) - + if table == nil { + continue + } var simpleQuery queryparser.SimpleQuery queryTranslator = NewQueryTranslator(ctx, queryLanguage, table, q.logManager)