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:
parent
390fad8c2e
commit
bb29139db2
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue