From cb31bf0d3670e8a2a1d37306a041a9f1fd558e6a Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 31 Oct 2011 16:33:56 +0200 Subject: [PATCH] Don't crash on errors without verbose mode --- examples/httpget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/httpget.cpp b/examples/httpget.cpp index e0c051c..a4314ce 100644 --- a/examples/httpget.cpp +++ b/examples/httpget.cpp @@ -58,7 +58,8 @@ int HttpGet::main() else { const Http::Response *response = client.get_url(url); - IO::print(response->get_content()); + if(response) + IO::print(response->get_content()); } return 1; -- 2.43.0