Skip to content

Commit

Permalink
added null check for query::query
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Dec 10, 2024
1 parent 8220076 commit 6bd98d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function __construct(
public function convert(Query $query, array $languageSettings = [])
{
$params = [
'q' => '{!lucene}' . $this->criterionVisitor->visit($query->query),
'q' => '{!lucene}' . ($query->query !== null ? $this->criterionVisitor->visit($query->query) : ''),
'fq' => '{!lucene}' . ($query->filter !== null ? $this->criterionVisitor->visit($query->filter) : ''),
'sort' => $this->getSortClauses($query->sortClauses),
'start' => $query->offset,
Expand Down

0 comments on commit 6bd98d2

Please sign in to comment.