groner/blacklight — comment on commit 2a972fdf072db95f4f276be1e85fbf0ba58e2015
File:  line 0
By cbeer:

Are you sure default_search_field can be nil? It seems like, in order for it to be nil, you mustn't have any search fields defined (which, maybe, should be a validation error, or should have a generic default?)

```ruby
# Returns default search field, used for simpler display in history, etc.
# if not set in blacklight_config, defaults to first field listed in #search_field_list
def default_search_field
blacklight_config.default_search_field || search_field_list.first
end
```

https://github.com/projectblacklight/blacklight/blob/master/lib/blacklight/search_fields.rb#L56