* BUG: XmlNode: Don't crash when _get()'ing an empty attribute value



git-svn-id: svn://localhost/gambas/trunk@7911 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Tobias Boege 2016-09-13 11:53:40 +00:00
parent 0282763790
commit 6d5cc42da0

View file

@ -207,7 +207,7 @@ Attribute *attr = XMLElement_GetAttribute((Element*)THIS, STRING(name), LENGTH(n
if(attr)
{
GB.ReturnNewString(attr->attrValue, attr->lenAttrValue);
GB.ReturnNewString(attr->attrValue ? : "", attr->lenAttrValue);
}
else
{