Commit 23d226e8 authored by Pavel Vainerman's avatar Pavel Vainerman

Небольшое исправление в getProp(). Попытка вылечить std::exception 'logic_error'

parent 32cff9c0
......@@ -120,7 +120,7 @@ string UniXML::getPropUtf8(const xmlNode* node, const string name)
string UniXML::getProp(const xmlNode* node, const string name)
{
const char * text = (const char*)::xmlGetProp((xmlNode*)node, (const xmlChar*)name.c_str());
if (text == NULL)
if( !text )
return "";
return string(text);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment