NoMethodError: zoekt_nodes is null in some instances
Summary
Some zoekt searches end up with empty zoekt_nodes
which results in an unhandled exception
Steps to reproduce
Unknown
What is the current bug behavior?
unhandled exception
What is the expected correct behavior?
search results are returned or a generic error message
Relevant logs and/or screenshots
this is occurring in both count
and show
methods for the SearchController
undefined method `id' for nil:NilClass (NoMethodError)
@zoekt_node_id ||= zoekt_nodes.first.id
^^^