[GB.XML]
* 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:
parent
0282763790
commit
6d5cc42da0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue