lib/instana/agent.rb in instana-0.15.0 vs lib/instana/agent.rb in instana-1.0.1
- old
+ new
@@ -213,10 +213,10 @@
req.body = payload.to_json
response = make_host_agent_request(req)
if response
- if response.body.length > 2
+ if response.body && response.body.length > 2
# The host agent returned something indicating that is has a request for us that we
# need to process.
handle_response(response.body)
end