Skip to content

Commit

Permalink
Merge pull request #226 from rsolr/guard_nil_response
Browse files Browse the repository at this point in the history
guard against nil response
  • Loading branch information
jrochkind committed Dec 15, 2021
2 parents 5ea30b8 + 1f543fa commit 0f2ce40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rsolr/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def initialize request, response
private

def response_with_force_encoded_body(response)
response[:body] = response[:body].force_encoding('UTF-8')
response[:body] = response[:body].force_encoding('UTF-8') if response
response
end
end
Expand Down

0 comments on commit 0f2ce40

Please sign in to comment.