NeonCXX: fixed report parser + boost function null call

XMLParser::initReportParser() allows an empty callback,
but doResponseEnd() didn't check for that. Caused exceptions
and thus failures in the Google 404 workaround (now also fixed
differently, by providing a callback).
This commit is contained in:
Patrick Ohly 2012-03-12 18:13:32 +01:00
parent 390fad8c2e
commit bb29139db2

View file

@ -472,7 +472,9 @@ class XMLParser
std::string m_href, m_etag;
int doResponseEnd(const ResponseEndCB_t &responseEnd) {
responseEnd(m_href, m_etag);
if (responseEnd) {
responseEnd(m_href, m_etag);
}
// clean up for next response
m_href.clear();
m_etag.clear();