From: Mikko Rasa Date: Mon, 31 Oct 2011 14:33:56 +0000 (+0200) Subject: Don't crash on errors without verbose mode X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=cb31bf0d3670e8a2a1d37306a041a9f1fd558e6a;p=libs%2Fnet.git Don't crash on errors without verbose mode --- 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;