Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/mu_search/index_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def ensure_index_combination_for_groups(type_name, allowed_groups, used_groups =
end
end
end
indexes = @indexes[type_name].values.find_all(&:eager_index?)
indexes = @indexes[type_name]&.values&.find_all(&:eager_index?) || []
@logger.debug("INDEX MGMT") { "Currently known indexes for type '#{type_name}': #{indexes.map(&:allowed_groups).to_json}" }
# Find all indexes with allowed_groups that are a subset of the given allowed_groups
matching_indexes = indexes.find_all do |idx|
Expand Down